Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-15-2013, 05:12 AM
tinfanide tinfanide is offline Run-time Error 5174: Open Word Documents from Excel Windows 7 64bit Run-time Error 5174: Open Word Documents from Excel Office 2010 32bit
Expert
Run-time Error 5174: Open Word Documents from Excel
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default Run-time Error 5174: Open Word Documents from Excel

Early binding; opening a Word Document from Excel VBA.
First time, no error.
Starting from then, it returns the error stated in the codes below:
How could I fix it?



Code:
Public Sub SendToWord()

Dim myWord As Word.Application
Set myWord = New Word.Application
With myWord
    .Visible = True
    ''' Run-time Error 5174
    ''' Application-defined Error or Object-defined Error
    myWord.Documents.Open Filename:="1.doc"
End With
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time Error 5174: Open Word Documents from Excel Open Word w Excel & fill Word textboxes w info from Excel fields runtime error 4248 Joe Patrick Word VBA 2 01-30-2012 07:23 AM
Word Visual Basic error - run time error 504 crazymorton Word 11 01-13-2012 04:32 AM
Macro Error 5174 muster36 Word VBA 0 08-12-2011 03:34 AM
Run-time Error 5174: Open Word Documents from Excel Excel Open throws 0x800A03EC error sword.fish Excel 1 06-10-2010 09:23 AM
Run-time Error 5174: Open Word Documents from Excel Excel Files Will Not Open From Documents Normally tremaine Excel 1 06-17-2009 08:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:43 PM.


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