Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking m/soft word with excel workbook

Status
Not open for further replies.

JustinR6

Technical User
Nov 14, 2002
1
GB
Hello
Can anybody out there help me. I'm trying to open microsoft word from an excel spreadsheet. Is there a way i can do it using a button and macro?
Thanks for your help.
Justin
 
sub open_word
Application.ActivateMicrosoftApp xlMicrosoftWord
end sub
 
Got this from the help in VB editor...
:)

ActivateMicrosoftApp Method
See Also Applies To Example Specifics
Activates a Microsoft application. If the application is already running, this method activates the running application. If the application isn't running, this method starts a new instance of the application.

expression.ActivateMicrosoftApp(index)

expression Required. An expression that returns an Application object.

index Required XlMSApplication. Specifies the Microsoft application to activate.

XlMSApplication can be one of these XlMSApplication constants.
xlMicrosoftWord
xlMicrosoftPowerPoint
xlMicrosoftMail
xlMicrosoftAccess
xlMicrosoftFoxPro
xlMicrosoftProject
xlMicrosoftSchedulePlus

Example
This example starts and activates Word.

Application.ActivateMicrosoftApp xlMicrosoftWord
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top