Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   .saveas with a variable (http://www.outlookbanter.com/outlook-vba/103393-saveas-variable.html)

bbg July 28th 11 08:13 PM

.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"


All times are GMT +1. The time now is 12:51 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-2006 OutlookBanter.com