brianfosterblack
Active Member
- Joined
- Nov 1, 2011
- Messages
- 251
I am using Excel 2013
In cell L11 I have this formula
Address (K11,7)
This returns the address in the cell as $G$45 but the row number will change each time I loop the macro
In my code I want to go to that address and continue running the code.
to do this, I am using this code
Application.Goto Sheets("Sheet1").Range(Sheets("Sheet1").Range("L11").Value) ' cell reference of where repeats start
I am running into an error on this line of code and do not understand why
I have 2 worksheets in the workbook but Cell L11 is on the same sheet as the code is running on (sheet1) named as Log Book
In cell L11 I have this formula
Address (K11,7)
This returns the address in the cell as $G$45 but the row number will change each time I loop the macro
In my code I want to go to that address and continue running the code.
to do this, I am using this code
Application.Goto Sheets("Sheet1").Range(Sheets("Sheet1").Range("L11").Value) ' cell reference of where repeats start
I am running into an error on this line of code and do not understand why
I have 2 worksheets in the workbook but Cell L11 is on the same sheet as the code is running on (sheet1) named as Log Book