bobaol
Board Regular
- Joined
- Jun 3, 2002
- Messages
- 225
- Office Version
- 365
- 2003 or older
- Platform
- Windows
Hello, I have a macro to go to many Windows. Here is the hard-coded version of one window I am activating. I want to activate the window based on cell A1. Cell A1 will have the value of the window name in it.
Sub Macro44()
Windows("Raw_Tables_18.xlsm").Activate
Application.Goto Reference:="R1C1"
End Sub
I tried this, but it does not work.
Sub Macro45()
Windows(range("a1")).Activate
Application.Goto Reference:="R1C1"
End Sub
Any help is appreciated. Thanks in advance.
Sub Macro44()
Windows("Raw_Tables_18.xlsm").Activate
Application.Goto Reference:="R1C1"
End Sub
I tried this, but it does not work.
Sub Macro45()
Windows(range("a1")).Activate
Application.Goto Reference:="R1C1"
End Sub
Any help is appreciated. Thanks in advance.