Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Starting Word from Excel

I am trying to write CSV to a temp file from Excel, then start a Word
document with the mail merge template and connect it to the CSV and do a
"Merge to New Document" using an Excel Macro. Wondering how to do this and
will this work in Windows (Office 2003 and 2007) and MAC?

My data is arranged in columns because I will potentially have 256 fields
(but only one record). Col A is the field headers and Col B the values.

Thanks,
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default Starting Word from Excel

Here is how you start word from excel

sub startwrd
Dim wrd As Object
Set wrd = CreateObject("Word.Application")
wrd.Visible = True
end sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Starting Word from Excel

That's a good start. Now how do I specify what file Word should open and
what file it should connect to for Mail Merge, and actually do the merge?
I'm thinking that I will have to have a macro on the Word side that does the
connection and merge. So what remains is how to pass WOrd the name of the
mail merge template to open, the name of the CSV file to connect to and the
name of the final file to save thhe merge to. Any ideas?
--

Thanks,
Andy


"GTVT06" wrote:

Here is how you start word from excel

sub startwrd
Dim wrd As Object
Set wrd = CreateObject("Word.Application")
wrd.Visible = True
end sub

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
keyboard is locked after starting in both word and excel kfaul Excel Discussion (Misc queries) 0 November 18th 08 03:48 PM
how to keep a word of same sentence starting w a capital next lin dottie Excel Worksheet Functions 1 September 20th 07 05:32 PM
separate a Capital starting word from a sentence Rasoul Khoshravan Excel Worksheet Functions 3 October 25th 06 06:31 PM
Starting Excel from Word MichaelS_[_6_] Excel Programming 4 March 3rd 06 03:50 PM
Starting a userform upon starting the file Fritznel Excel Programming 1 July 28th 03 05:37 AM


All times are GMT +1. The time now is 06:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"