Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting workbook
I have two workbooks. I want to delete worksheets from the one that i
not currently active. How do I do that? Right now it keeps deletin the sheets from the active one... Thanks! Elieze -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting workbook
Make sure to refer to the workbook by name. So if the
workbook is called XYZ.xls (I'm so imaginative!), and it is currently open: Workbooks("XYZ").Worksheets("Sheet1").Delete or Workbooks("XYZ").Worksheets(1).Delete tod -----Original Message----- I have two workbooks. I want to delete worksheets from the one that is not currently active. How do I do that? Right now it keeps deleting the sheets from the active one... Thanks! Eliezer --- Message posted from http://www.ExcelForum.com/ . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting workbook
Specify the other workbook
workbooks("otherbookname.xls").Worksheets("Sheet3" ).Delete -- Regards, Tom Ogilvy "Lazer " wrote in message ... I have two workbooks. I want to delete worksheets from the one that is not currently active. How do I do that? Right now it keeps deleting the sheets from the active one... Thanks! Eliezer --- Message posted from http://www.ExcelForum.com/ |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Selecting workbook
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selecting used cells only in the workbook | Excel Discussion (Misc queries) | |||
Vlookup - Array not selecting in other workbook | Excel Discussion (Misc queries) | |||
Help!!!! Selecting a cell in another workbook | Excel Programming | |||
Selecting the other open workbook | Excel Programming |