Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help?
At the minute I have script that reads: Windows(Ind ot data.xs).Activate Sheets(190906).Select But I want the 190906 to be a variable input via a form or cell. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try...
hawb = InputBox("Sheet Name") Sheets(hawb).Activate Duncan Graeme wrote: Can anyone help? At the minute I have script that reads: Windows("Ind ot data.xs").Activate Sheets("190906").Select But I want the 190906 to be a variable input via a form or cell. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
or if you want it fixed in a cell...
hawb = Range("A1").Value Sheets(hawb).Activate Duncan Duncan wrote: try... hawb = InputBox("Sheet Name") Sheets(hawb).Activate Duncan Graeme wrote: Can anyone help? At the minute I have script that reads: Windows("Ind ot data.xs").Activate Sheets("190906").Select But I want the 190906 to be a variable input via a form or cell. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Graeme,
Has this worked for you? Duncan Duncan wrote: or if you want it fixed in a cell... hawb = Range("A1").Value Sheets(hawb).Activate Duncan Duncan wrote: try... hawb = InputBox("Sheet Name") Sheets(hawb).Activate Duncan Graeme wrote: Can anyone help? At the minute I have script that reads: Windows("Ind ot data.xs").Activate Sheets("190906").Select But I want the 190906 to be a variable input via a form or cell. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Duncan
Help much appreciated. Suggested fix has worked. Ta. Graeme "Duncan" wrote: Graeme, Has this worked for you? Duncan Duncan wrote: or if you want it fixed in a cell... hawb = Range("A1").Value Sheets(hawb).Activate Duncan Duncan wrote: try... hawb = InputBox("Sheet Name") Sheets(hawb).Activate Duncan Graeme wrote: Can anyone help? At the minute I have script that reads: Windows("Ind ot data.xs").Activate Sheets("190906").Select But I want the 190906 to be a variable input via a form or cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sum if 2 variables | Excel Discussion (Misc queries) | |||
Not at all clear on use of variables and/or object variables | Excel Discussion (Misc queries) | |||
Variables | Excel Programming | |||
Variables | Excel Programming | |||
Variables | Excel Programming |