Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Outlook attachment

Erin, I suggest you try:

set wkb=workbooks("myworkbook")
strCopyName= "c:\folder1\folder2\file.xls"

'create the copy
wkb.savecopyas strCopyName
'emailcode here
'...


'delete the copy
kill strCopyName



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"?B?RXJpbg==?=" wrote:

I have a VBA module which will email the open spreadsheet as an
attachment. I want to give the attachment a different name though.
Currently, I'm doing a 'Save As' under the new name and then emailing
it. This works okay for the email, but then I want the user put back
under the original workbook name. Is there a way to do this without
doing another saveas under the original file name?


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
Workbook_Open event does not run on Outlook attachment Finance guy Excel Discussion (Misc queries) 1 December 11th 06 10:48 PM
Outlook attachment to network folder Ozzie via OfficeKB.com Excel Discussion (Misc queries) 2 February 3rd 06 11:19 AM
Outlook attachment papou[_9_] Excel Programming 0 June 28th 04 03:33 PM
Send Outlook Attachment within Excel JR[_4_] Excel Programming 5 February 21st 04 09:08 PM
Email Attachment from Excel using Outlook. Pyball[_3_] Excel Programming 2 December 17th 03 07:08 PM


All times are GMT +1. The time now is 04:40 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"