Advertisement

04.03.2008 at 08:38PM PDT, ID: 23294998 | Points: 250
[x]
Attachment Details

Word VBA change save path for each mail merged document

Asked by robjeeves in Microsoft Word, Visual Basic Programming, VB Script

Tags: , ,

G'day experts

I currently enjoy the VBA code that splits mail merged documents into seperate documents in a loop (the code copies all text to 1st section break, pastes into new doc and saves). This works great BUT becaues of the standard layout of the resultant letters I think it should be possible to open the Save dialogue box at the correct path thus avoiding the user from having to browse and locate the folder each time they save one of the documents.

I can use the code to store what should be the path into the variable NetworkDrivePath

Bascially experts I'd love some code that can

Check that NetworkDrivePath exists, if not open the save dialgue at the default location otherwise open the SaveAs dialgue at the path of NetworkDrivePath. At this time I don't want to take the code further and auto save as the staff want to maintain control/faith that correct saving is occuring.

Thanks in advance for any help.Start Free Trial
[+][-]04.04.2008 at 02:48AM PDT, ID: 21280068

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 09:02PM PDT, ID: 21331309

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-39 / EE_QW_2_20070628