Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2011, 12:26 AM
macropod's Avatar
macropod macropod is offline Word Visual Basic error - run time error 504 Windows 7 64bit Word Visual Basic error - run time error 504 Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 Matt,



If you take a look at the code I posted in #15 in this thread: https://www.msofficeforums.com/vba/7...ction-etc.html you'll see that I work with up to four documents at a time, each of which is managed via a variable and none of which I need to make active for processing purposes. The 'master' document for each set is defined and managed via:
Code:
Set DocSrc = Documents.Open(FileName:=strInFold & "\" & strFile, AddTorecentFiles:=False, Visible:=False)
  With DocSrc
  ...
  End with
As for the programmer not anticipating '[Compatibility Mode]' in the window name, the same oversight probably made the software incompatible with any window-naming customizations a client might do.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 01-13-2012, 04:32 AM
madd madd is offline Word Visual Basic error - run time error 504 Windows XP Word Visual Basic error - run time error 504 Office 2010 32bit
Novice
 
Join Date: Jan 2012
Posts: 1
madd is on a distinguished road
Default

Hi

I came across this post when I had a very similar problem. In the end I found that if I went to Folder Options (for any folder), and the View tab. if you have it set to Hide extensions for known file types (the default) the mailings will not work, but if you take this option off, if is all fine!

I don't know if this will help anyone else, but it worked for me.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word: The document 'Filename' caused a serious error the last time ... martincruise Word 0 02-25-2010 01:47 AM
Runtime error 5487 - Word cannot complete the save to to file permission error franferns Word 0 11-25-2009 05:35 AM
Referencing Tables in Visual Basic Editor DavidB Word Tables 0 09-21-2009 04:01 PM
Receive error cannot open this form because an error occurred in BCM 2007 bornhusker Outlook 0 06-01-2009 10:28 AM
Word Visual Basic error - run time error 504 A little Visual Basic Help Please leroytrolley Excel 4 08-22-2008 03:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:31 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