Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Using a workbook name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Rees - 24 Sep 2007 12:46 GMT
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.
Bob Phillips - 24 Sep 2007 12:59 GMT
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.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> 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.
JW - 24 Sep 2007 13:00 GMT
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
> 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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.