A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

.saveas with a variable



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 28th 11, 08:13 PM
bbg bbg is offline
Junior Member
 
First recorded activity at Outlookbanter: Jul 2011
Posts: 1
Default .saveas with a variable

Hello board,

I've got a simple saveas routine, but when I use a variable for the file name, the save doesnt actually happen. When I hard code the string, it works. What gives?

My code:

TempEmailName = TempEmailName & tempfile & objItem.Size & ".msg"
objItem.SaveAs TempEmailName

//TempEmailName = "S\CloseDocumentsCares\Email\34902-\FW yesa Air--sfdfeht to Lidfdfdtstone ATTACH POCS ONCE TRADE IS OPENED 349-0-23081164.msg"
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Saveas method ADuPlayee Outlook and VBA 7 October 15th 08 06:23 PM
MailItem SaveAs Koen Verwimp Add-ins for Outlook 2 September 22nd 08 01:41 PM
variable Joel Allen Outlook and VBA 5 October 18th 07 09:11 PM
_MailItem - SaveAs MON205 Add-ins for Outlook 1 February 22nd 07 06:01 PM
Saveas dialog Dimitri Outlook and VBA 5 February 20th 06 05:51 PM


All times are GMT +1. The time now is 06:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.