Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way that you can put a variable instead of "book1" in the
Workbooks("book1").Worksheets("sheet1").Range("a1" ) statement? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Luc
Try this Dim wb As Workbook Set wb = Workbooks("Book1.xls") wb.Sheets("Sheet1").Range("a1").Select change Set wb = Workbooks("Book1.xls") -- Regards Ron de Bruin http://www.rondebruin.nl "Luc" wrote in message ... Is there a way that you can put a variable instead of "book1" in the Workbooks("book1").Worksheets("sheet1").Range("a1" ) statement? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim strBook as string
strBook = "book1" Workbooks(strBook ).Worksheets("sheet1").Range("a1") -- HTH... Jim Thomlinson "Luc" wrote: Is there a way that you can put a variable instead of "book1" in the Workbooks("book1").Worksheets("sheet1").Range("a1" ) statement? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
"Subscript out of range" error for: Workbooks("Test1.xls").Save | Excel Programming |