Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Opening a Microsoft Word 2003 Document.

I am trying to write a macro that opens a Microsoft word 2003 document so
that I can transfer an Excel address worksheet to it in order to make address
labels. My problem is that the macro won't "recognize" the Word format.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Opening a Microsoft Word 2003 Document.

If you want to open an existing word doc, then something like:

Sub Macro1()
x = Shell("cmd.exe /c C:\hello.doc", 1)
End Sub

should work
--
Gary''s Student - gsnu200745


"Fello" wrote:

I am trying to write a macro that opens a Microsoft word 2003 document so
that I can transfer an Excel address worksheet to it in order to make address
labels. My problem is that the macro won't "recognize" the Word format.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 213
Default Opening a Microsoft Word 2003 Document.

I am trying to write a macro that opens a Microsoft word 2003 document
so that I can transfer an Excel address worksheet to it in order to
make address labels. My problem is that the macro won't "recognize"
the Word format.


Forgive the digression if you've already considered this, but a
straightforward way to make address labels from an Excel address worksheet
is Word's "Mail Merge" feature.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Opening a Microsoft Word 2003 Document.



"Gary''s Student" wrote:

If you want to open an existing word doc, then something like:

Sub Macro1()
x = Shell("cmd.exe /c C:\hello.doc", 1)
End Sub

should work
--
Gary''s Student - gsnu200745


"Fello" wrote:

I am trying to write a macro that opens a Microsoft word 2003 document so
that I can transfer an Excel address worksheet to it in order to make address
labels. My problem is that the macro won't "recognize" the Word format.


Thanks for your help. I tried this routine: x = Shell("cmd.exe /c
C:\hello.doc", 1) and it only seems to open and close MSDOS briefly, then
nothing else happens.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Opening a Microsoft Word 2003 Document.



"MyVeryOwnSelf" wrote:

I am trying to write a macro that opens a Microsoft word 2003 document
so that I can transfer an Excel address worksheet to it in order to
make address labels. My problem is that the macro won't "recognize"
the Word format.


Forgive the digression if you've already considered this, but a
straightforward way to make address labels from an Excel address worksheet
is Word's "Mail Merge" feature.
Thanks. I am using the word\mail merge feature; my problem is writing a macro that will open the word document so I can use it.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Opening a Microsoft Word 2003 Document.

The routine assumes that a Word document called:
hello.doc
already exists in the c:\ folder
--
Gary''s Student - gsnu200745


"Fello" wrote:



"Gary''s Student" wrote:

If you want to open an existing word doc, then something like:

Sub Macro1()
x = Shell("cmd.exe /c C:\hello.doc", 1)
End Sub

should work
--
Gary''s Student - gsnu200745


"Fello" wrote:

I am trying to write a macro that opens a Microsoft word 2003 document so
that I can transfer an Excel address worksheet to it in order to make address
labels. My problem is that the macro won't "recognize" the Word format.


Thanks for your help. I tried this routine: x = Shell("cmd.exe /c
C:\hello.doc", 1) and it only seems to open and close MSDOS briefly, then
nothing else happens.

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
Linking an Excel 2003 document copied to a Word 2003 document jfg Excel Discussion (Misc queries) 7 July 26th 07 10:16 PM
using microsoft word document objects in excel Dana Dratch Excel Discussion (Misc queries) 1 July 10th 07 02:05 AM
Microsoft Visual Basic errors displaid when opening Microsoft Word 97 & Excel (7 JJ mac Setting up and Configuration of Excel 7 June 14th 07 06:54 PM
opening word document rk0909 Excel Discussion (Misc queries) 0 January 10th 07 02:42 PM
Opening Word Document with excel [email protected] Excel Discussion (Misc queries) 0 March 21st 05 01:49 AM


All times are GMT +1. The time now is 03:10 AM.

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

About Us

"It's about Microsoft Excel"