Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Naming a workbook WITHOUT saving it?

I use Excel to make workbooks up from inside Access, then call Excel's
Outlook integration to send it:

oExcelApp.ActiveWorkbook.SendMail Recipients:=Array(...

However, this sends out the book with the default name, like "Book 1" and
such. Is there some way to change the name of the book without saving it?
This obvious solution does NOT work:

oExcelApp.ActiveWorkbook.Name = "New name"

If there is no way to do this without saving, where is a good "temp"
location to save it to?

Maury
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Naming a workbook WITHOUT saving it?

"Tom Ogilvy" wrote:

No, you must save it to name it.

However after sending it you could Kill it

kill "C:\Temp\Mybooks.xls"


Fair enough! Is \temp\ always available on C?

Maury
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel 2003, how do I automate file naming/saving + date? MichaelOfficer Setting up and Configuration of Excel 1 July 19th 09 01:46 PM
Naming a workbook WITHOUT saving it? Tom Ogilvy Excel Programming 0 March 21st 06 06:41 PM
Naming a workbook WITHOUT saving it? Tom Ogilvy Excel Programming 1 March 21st 06 06:40 PM
Workbook naming Jenny Excel Programming 1 September 2nd 04 03:16 PM
Saving a Workbook: Forcing User to Rename before Saving Rollin_Again[_6_] Excel Programming 5 April 16th 04 02:54 PM


All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"