troubleshooting Question

outlook vba to saveas .msg allowing user to navigate to target folder.

Avatar of rberke
rberkeFlag for United States of America asked on
Microsoft AccessOutlookMicrosoft Excel
6 Comments1 Solution1336 ViewsLast Modified:
Outlook's Item.SaveAs  path,olMsg    requires a fully qualified path.  

How can I let the user choose the folder path?

I'll take any solution, but the ideal solution would allow the user to suggest a folder and filename, but allow the vba program to enforce certain file naming conventions.

Something like Excel's GetSaveAsFileName would be ideal the problem.

I thought this would be simple, but a half hour of googling convinced me otherwise.

rberke

P.S.  I even tried
set xls = createobject("Excel.Application")
targetname = xls.getsaveasfilename

But, the xls navigation dialog seems to get "buried" under Outlook where noone can see it.  I could problably make it pop to the top with various tricks but I think I would end up regretting that.

Also, I found 'BrowseFolder' code at http://www.cpearson.com/excel/browsefolder.aspx
but I really want to have an initalfolder option which that subroutine does not seem to have.



Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros