Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2006

Tip: Looking for answers? Try searching our database.

Using Application.ActivateMicrosoftApp xlMicrosoftWord

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
billw1829 - 04 Apr 2006 21:40 GMT
I'm launching MS Word from Excel and was wondering if there are any arguments
that can be used in the Application.ActivateMicrosoftApp xlMicrosoftWord
expression to automatically execute a letter merge whose form letter and
merge file are already known (and populated).

Am a fair Excel VB programmer but have no experience at all programming Word.
Any tips and/or hints to perform this function will be appreciated.

Thank you -
Bill Wachtenheim
Marlborough, MA
Jean-Guy Marcil - 05 Apr 2006 02:39 GMT
billw1829 was telling us:
billw1829 nous racontait que :

> I'm launching MS Word from Excel and was wondering if there are any
> arguments that can be used in the Application.ActivateMicrosoftApp
[quoted text clipped - 4 lines]
> programming Word. Any tips and/or hints to perform this function will
> be appreciated.

No, I don't think you can have argument in the Activate line that foes that.
In fact, Activate does not take any arguments.

What you can do is start the macro recorder, do the mail merge and then
examine the code you get to clean it up.
For pointers on that, see:
   http://word.mvps.org/faqs/macrosvba/UsingRecorder.htm
and
   http://word.mvps.org/faqs/macrosvba/ModifyRecordedMacro.htm

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org 

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.