lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I have 3 sheets and they are showing in the vba editor/project window as following:
- sheet1(hello1)
- sheet2(hello2)
- sheet3(hello3)
I am moving these sheets around using vba code and I want to make sure that sheet1 is the active one after whatever move I do. I remember once I used code name to activate sheet1(hello1), but it does not work now
I am trying to avoid using worksheets("hello1")
I have 3 sheets and they are showing in the vba editor/project window as following:
- sheet1(hello1)
- sheet2(hello2)
- sheet3(hello3)
I am moving these sheets around using vba code and I want to make sure that sheet1 is the active one after whatever move I do. I remember once I used code name to activate sheet1(hello1), but it does not work now
Code:
Sub abc()
Workbooks(1).Sheet1.Activate
End Sub
I am trying to avoid using worksheets("hello1")
Last edited: