Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2011, 02:04 AM
macropod's Avatar
macropod macropod is offline How do I find the Source folder? Windows 7 32bit How do I find the Source folder? Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Phil,

You can't test the mailmerge datasource location until after the document has opened but, in doing so, you need to either locate it for yourself if Word can't, or allow Word to remove that info from the file. Thus, before you can run the macro, you've either solved the problem or destroyed the evidence ...

What you can do when Word doesn't find the datasource is respond 'Yes' to the SQL prompt, then 'OK'. The next dialogue box tells you where the datasource was expected, including the filename. In the case of the document you posted, it's:
C:\Program Files\TakingLife\merge.txt


After noting the datasource details, you can simply cancel out of opening the document.

Although the datasource details are stored in the Word document (in the metadata towards the end of the file), I've not been able to find any code for reading that from an otherwise closed document with vba.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 04-21-2011, 02:41 AM
PhilAJ PhilAJ is offline How do I find the Source folder? Windows XP How do I find the Source folder? Office 2007
Novice
How do I find the Source folder?
 
Join Date: Apr 2011
Posts: 7
PhilAJ is on a distinguished road
Default

Thanks very much for that - it helps a lot.

Didnt give me that Path - just showed a message with DSNxjhxgh stuff in.

I can now move on though...fancy not putting the merge file where the documents are - previous programmer did this !!

Thanks Again

phil
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I find the Source folder? Outlook 2010 View Source tbragsdae Outlook 2 07-25-2012 06:33 PM
tracking source when pasting between documents kirko Word 0 08-22-2010 09:15 PM
Can't find Task Folder kc300c Outlook 0 08-02-2010 09:22 PM
Issue with formula's from an outside source phroche Excel 0 11-07-2008 03:08 PM
Installation Source Corrupted browneyes Office 1 01-23-2006 02:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft