Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hard code the workbook name in macro
I have a macro to delete a worksheet.
When its run multiple excel files are open. To be sure it doens't accidently delete the sheet from the wrong file, how can I hardcode the workbook name into my macro. Assume my workbook is called myFile.xls Bruce Sub DelSheets() Sheets("Sheet2").Delete End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
hard code a password in a vba code | Excel Programming | |||
How do I call up a line of code that references a cell/range in theactive workbook workbook where I am running my macro from? | Excel Programming | |||
Not Hard Code If | Excel Discussion (Misc queries) | |||
Hard Code DLL Reference in VBA | Excel Programming | |||
Hard Code DLL Reference in VBA | Excel Programming |