Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel XP & Win XP
This is very simple but I can't quite hit it. I have a variable workbook set to the variable "wbCMP". That workbook has only one sheet and the sheet name is variable. That workbook is NOT the active workbook. I want to refer to that single sheet in a With .../End With construct, as in: With wbCMP.Sheet1 'Copy/paste data End With I tried .Sheets(Sheet1) ..Sheets(Sheet(1)) ..Sheet(1) to no avail. What is the proper syntax to refer to that lone sheet? Thanks for your time. Otto |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
referring to a sheet in another file | Excel Worksheet Functions | |||
Formula referring to a different sheet | Excel Discussion (Misc queries) | |||
Referring to a sheet | Excel Programming | |||
Referring to a cell in another sheet | Excel Programming | |||
referring to previous sheet | Excel Discussion (Misc queries) |