How do I open Word directly at a specific paragraph?

G

Guest

I need to open a Word document directly (from the command line) at one of
many different paragraphs. I can't use macros because Word does not allow
passing input arguments to top-level macros, and creating a separate macro
for each paragraph is obviously bad.

I could place bookmarks and save-as HTML (and then link to ...htm#bookmark),
but I'd rather open the original DOC, in MS Word.

Is there any way to do so?

(I have office 2K3 on WinXP SP2)
 
C

Cindy M.

Hi =?Utf-8?B?YWx0bWFueQ==?=,
I need to open a Word document directly (from the command line) at one of
many different paragraphs. I can't use macros because Word does not allow
passing input arguments to top-level macros, and creating a separate macro
for each paragraph is obviously bad.

I could place bookmarks and save-as HTML (and then link to ...htm#bookmark),
but I'd rather open the original DOC, in MS Word.

Is there any way to do so?
No, there is not.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
S

Steve Yandl

An alternate option would be to use a script to launch the Word application
and pass the path to the document as one of the arguments to the script.
You could also pass the paragraph number and/or the name of a macro (if it
is known). Doing this, your command line would be for cscript.exe rather
than winword.exe.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top