View Single Post
  #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