Greetings - I've got a piece of code that I'm sure I have something wrong with, however I get no sytax or other error messages.
In a nut shell, I'm having problems when it comes to naming a range. The size of the range changes daily based on prior day's activity. My code determines how many rows the range has with a Do While loop.
Here is where the problems starts.
Range(cells(1,1),cells(r,1).select 'Do while loop sets r value
ActiveWorkbook.names.Add Name:="PriorDay",RefersToR1C1:="=Sheet1!(Cells(1,1),cells(r,1))"
Thanks for the advice.
In a nut shell, I'm having problems when it comes to naming a range. The size of the range changes daily based on prior day's activity. My code determines how many rows the range has with a Do While loop.
Here is where the problems starts.
Range(cells(1,1),cells(r,1).select 'Do while loop sets r value
ActiveWorkbook.names.Add Name:="PriorDay",RefersToR1C1:="=Sheet1!(Cells(1,1),cells(r,1))"
Thanks for the advice.