appending one rtf file to another

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a macro that inserts file2.rtf at the end of file1.rtf, saves file1.rtf , and exits and if i call it this way at the command line or in a bat file it works.
<path to winword> /mcatfiles file1.rtf

but ONLY it seems if catfiles macro is in normal.dot

If I put it in another template and put that in my user startup folder the macro loads (its there when I look at tools/macros)
but it wont run when called as above. I would like to avoid altering normal.dot for all who might need this macro.

The purpose is to automate appending one rtf file to the end of another.
Environment is Word2000/Windows 2000 and Windows XP.
I have lowered security for macros.

Thanks in advance for any advice or comments you might be able to provide.
 
Hi =?Utf-8?B?YmQ=?=,

Note that a better place to ask this would be one of the word.vba
newsgroups - you'd probably have gotten a quicker response :-)

Place your macro in a document and distribute the document. Name the
macro AutoOpen. The users should create an icon for this specific
document; when they use the icon the document will open and the
macro will execute.

Otherwise, a template for the Startup folder is a possibility.
Create a toolbar that's *saved IN the template*. The user can then
use this toolbar to run your macro.
I have a macro that inserts file2.rtf at the end of file1.rtf,
saves file1.rtf , and exits and if i call it this way at the command
line or in a bat file it works.
but ONLY it seems if catfiles macro is in normal.dot

If I put it in another template and put that in my user startup
folder the macro loads (its there when I look at tools/macros)
but it wont run when called as above. I would like to avoid
altering normal.dot for all who might need this macro.
The purpose is to automate appending one rtf file to the end of another.
Environment is Word2000/Windows 2000 and Windows XP.
I have lowered security for macros.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30
2003)
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 :-)
 
Thank you Cindy.

A followup question: any advice on how to make the macro inside the distributed document "trusted" so the end-user
don't have to run with lowered security. Thanks again

-b

----- Cindy M -WordMVP- wrote: ----

Hi =?Utf-8?B?YmQ=?=,

Note that a better place to ask this would be one of the word.vba
newsgroups - you'd probably have gotten a quicker response :-

Place your macro in a document and distribute the document. Name the
macro AutoOpen. The users should create an icon for this specific
document; when they use the icon the document will open and the
macro will execute

Otherwise, a template for the Startup folder is a possibility.
Create a toolbar that's *saved IN the template*. The user can then
use this toolbar to run your macro
I have a macro that inserts file2.rtf at the end of file1.rtf,
saves file1.rtf , and exits and if i call it this way at the command
line or in a bat file it worksfolder the macro loads (its there when I look at tools/macros
but it wont run when called as above. I would like to avoid
altering normal.dot for all who might need this macro
another
Environment is Word2000/Windows 2000 and Windows XP
I have lowered security for macros


Cindy Meiste
INTER-Solutions, Switzerlan
http://homepage.swissonline.ch/cindymeister (last update Sep 30
2003
http://www.word.mvps.or

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