kentuckybronco
New Member
- Joined
- Jun 3, 2011
- Messages
- 5
Sub GetData()
Dim SelectSheet As String
SelectSheet = InputBox("Enter sheet name")
Workbooks("Report").Sheets("Main") = SelectSheet
End Sub
I'm getting a "subscript out of range" error for line 4.
Dim SelectSheet As String
SelectSheet = InputBox("Enter sheet name")
Workbooks("Report").Sheets("Main") = SelectSheet
End Sub
I'm getting a "subscript out of range" error for line 4.