Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using a workbook name
Is there anyway to use a workbook name in code without using
application.getsaveasfilename or getopenfilename? As I am trying to create multiple workbooks from a master workbook and would prefer not to have to save the workbook every time. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using a workbook name
The workbook doesn't get a full name until it is saved.
You could always create a workbook object when you save it Set oWB = Workbooks.Add and use that object after that. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Chris Rees" wrote in message ... Is there anyway to use a workbook name in code without using application.getsaveasfilename or getopenfilename? As I am trying to create multiple workbooks from a master workbook and would prefer not to have to save the workbook every time. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using a workbook name
Just set the workbook name or workbook itself to a variable and use it
however you want. Dim wbName As String wbName=ActiveWorkbook.Name or Dim wb As Workbook Set wb = AvtiveWorkbook Chris Rees wrote: Is there anyway to use a workbook name in code without using application.getsaveasfilename or getopenfilename? As I am trying to create multiple workbooks from a master workbook and would prefer not to have to save the workbook every time. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook | Excel Programming | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Running a macro to protect a workbook on a already protected workbook UNprotects the workbook ?? | Excel Programming | |||
Copy a range of cells in an unopened workbook and paste it to the current workbook | Excel Programming | |||
What commands do you use to name a workbook, save a workbook,open a workbook | Excel Programming |