Embedding macros

F

Fuzzhead

We are converting thousands of WordPerfect documents to Word. I have created
templates and macros to help make it easer. The problem is that everybody in
the company has accuses to them to make changes and if they don’t have the
templates in their computer, the macros don’t work. Is there a way to embed
the macros into the documents instead of attaching the template to them?

This is what I have now:

With ActiveDocument
.AttachedTemplate = "U:\PMT\PMaster.dot"
.UpdateStyles
End With

Fuzzhead
 
J

JeffP->

Fuzzhead,

I'm not sure if this helps, but you could put all the macros into one addin
and distribute it, or as I do put a link to a batch file that copies the file
from our Apps\Word\Startup folder to their own startup folder....
MLinkUpdate.bat is edited in NotePad and saved in the S:\Apps\Word\Startup
folder and a link is sent via email.

rem begin copy...........................
echo off
echo Copying MLink Update...
echo.
xcopy S:\apps\Word\StartUp\MLink.dot
C:\Docume~1\%UserName%\applic~1\Microsoft\Word\Startup\MLink.dot /r /y /q
if %errorlevel% EQU 0 goto goodything
if %errorlevel% NEQ 0 goto badthing
echo.
:goodything
echo.
echo %Username%, All is Well and Good...
echo.
pause
exit

:badthing
echo %errorlevel%
echo.
echo %Username%, Something Bad happened...
echo.
echo Please re-Try, Word must be closed, single-click the link...
pause
exit
rem end copy...........................
 

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