Computing.Net > Forums > Office Software > macro word/excel

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

macro word/excel

Reply to Message Icon

Name: aparmar
Date: July 23, 2007 at 02:39:54 Pacific
OS: xp sp2
CPU/Ram: 1.60Ghz/ 1GB Ram
Product: Toshiba laptop
Comment:

hi,
How do you activate a macro so that is from an excel workbook/sheet, it will jump to a Word document?
Any ideas and help would be great.

Thanks
Amit



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: July 23, 2007 at 06:58:26 Pacific
Reply:

Replace path_to_file and filename to match your file.

Sub openWordDoc()
Dim app As Object
Set app = CreateObject("Word.Application")
app.Visible = True
app.Documents.Open Filename:="C:\path_to_file\filename.doc"
End Sub

Or you could just insert the icon for the document and link it to to file. Double-Click the icon and the doc should open.

In either case, moving the Word document to another folder could cause a problem.



0

Response Number 2
Name: aparmar
Date: July 23, 2007 at 08:08:11 Pacific
Reply:

Thank you very much, you've help a so much.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: macro word/excel

Word Excel to PDF www.computing.net/answers/office/word-excel-to-pdf/6340.html

Macros in Excel www.computing.net/answers/office/macros-in-excel/3351.html

Macro in Excel www.computing.net/answers/office/macro-in-excel/5048.html