Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Don't set it to the worksheet name, set it to the worksheet object
Set sh = Worksheets("Sheet1") ... TableDestination = sh.Range("A10").Value -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct) "marksince1984" wrote in message news:marksince1984.29b7yo_1150150204.0161@excelfor um-nospam.com... I have a series of sheets with names set from variables. I want to reference these sheets later in the macro to do other functions Eg NewWorksheet.Name = variable1 ...later in the macro TableDestination:=variable1.Range("A10") Will this work?? What is the best way to reference a variable as names?? -- marksince1984 ------------------------------------------------------------------------ marksince1984's Profile: http://www.excelforum.com/member.php...o&userid=33484 View this thread: http://www.excelforum.com/showthread...hreadid=551223 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need to reference another sheet for two variables | Excel Worksheet Functions | |||
Vary variables in a formula via reference to another cell | Excel Discussion (Misc queries) | |||
reference variables correctly? | Excel Programming | |||
reference variables correctly? | Excel Programming | |||
Using variables to reference columns in VBA | Excel Programming |