Thread
:
Select sheet based on reference
View Single Post
#
2
Posted to microsoft.public.excel.programming
Sharad Naik
external usenet poster
Posts: 212
Select sheet based on reference
This means AString is name of the work book and
not name of the sheet.
Try
AString = "Input"
Sheets(AString).Select '= Will work
Sharad
"Hans Weustink" <Hans
wrote in message
...
Hi,
I'm able to selecet a workbook, but not a sheet based on a reference like
so:
Sub test()
Dim AString
AString = Sheets("Input").Range("A1").Value
Windows(AString).Activate = works
Sheets(AString).Select = doesn't work
End Sub
Can someone think of a (alternative) way it will work?
Thanks in advance,
Hans Weustink
Reply With Quote
Sharad Naik
View Public Profile
Find all posts by Sharad Naik