tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,926
- Office Version
- 365
- 2019
- Platform
- Windows
Assume Sheet1 is active.
In a module, I type:
This returns a Run-time error '1004:' Select method of Range class failed.
I assume the reason is you must be on the active sheet to select a cell in it.
However, this works if you are NOT on Sheet2:
so why use the Select method at all?
Thanks
In a module, I type:
Code:
Sub Test
Sheet2.Cells(1,1).Select
End Sub
This returns a Run-time error '1004:' Select method of Range class failed.
I assume the reason is you must be on the active sheet to select a cell in it.
However, this works if you are NOT on Sheet2:
Code:
Sub Test
Application.GoTo Sheet2.Cells(1,1)
End Sub
so why use the Select method at all?
Thanks
Last edited: