A way to pre-load Word macros into memory when Word starts

Products and tips

Moderator: Site Mods

Post Reply
User avatar
pschroeter
Silver Member
Silver Member
Posts: 283
Joined: 2007 Jan 27, 00:46

A way to pre-load Word macros into memory when Word starts

Post by pschroeter »

Is there a way to pre-load Word macros into memory when Word starts? I’m trying to avoid the slight pause I get when I use a macro for the first time after I startup Word. After I use any macro the first time, they seem to run instantly for the rest of the session.
It’s only a slight annoyance, but I am sure there must be something simple I can do with an AutoExec macro or something else. I’m using Word 2003.
pj
Gold Member
Gold Member
Posts: 477
Joined: 2006 Jan 26, 14:01
Location: Florida

Post by pj »

Try putting the following into the module in Normal.dot

Code: Select all

Sub autoexec()
main:
    StatusBar = "ready ..."
End Sub
---------------------
PJ in (hot & humid) FL
User avatar
pschroeter
Silver Member
Silver Member
Posts: 283
Joined: 2007 Jan 27, 00:46

Thank you that appears to work.

Post by pschroeter »

[quote="pj"]Try putting the following into the module in Normal.dot

Code: Select all

Sub autoexec()
main:
    StatusBar = "ready ..."
End Sub
---------------------
From what I’ve figured out, StatusBar is the Word Basic equivalent of Basic’s Print command, so the trick is to give AutoExec something benign to do, forcing Word to load all of the macros.
Post Reply