Hi Fred
As I understand it, you want a way to let other applications start Word
without loading your code, and you want users to start Word so that it
does load your code.
One way to do this might be as follows:
1. Create a .dot file that contains the code you want to load. Let's say
this is called "AllMyCode.dot". Store this in a known location, but not
in the Word Startup folder.
2. Create a second .dot file and put it in the Word startup folder. This
.dot file is called, say, "MyStartupFile.dot". It contains one macro
called, say "LoadMyStuff". This macro loads "AllMyCode.dot".
3. Change the shortcuts that users click to start Word by adding the
/mmacroname switch, eg winword.exe /mLoadMyStuff.
In all cases, MyStartupFile.dot will load, but it is tiny and will not
slow down the other apps that use Word. But when the user clicks the
shortcut, it will invoke the one macro in MyStartupFile.dot and it can
load your addin.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
>I would like to know if it is posible to determine if how word has been
> started.
[quoted text clipped - 63 lines]
>
> Thanks in anticipation
Fred Kruger - 09 Jan 2008 21:06 GMT
Shauna
Thanks for this this was what I was looking for but dont undertand where in
the icon to put the switch as if I put it after the winword.exe in the icon
properties target i.e "C:\Program Files\Microsoft Office\Office\WINWORD.EXE"
(office97) it throws an error message up.
I cannot find where to put it in the office 11 icon.
Can you give me an idiots guide my startup.dot is called nichestart.dot
which has a sub routine called menuload in a module named general. I am
loading my menu from menuload as an add in template is this the best way?
Thanks for anticipation.
Fred
> Hi Fred
>
[quoted text clipped - 92 lines]
> >
> > Thanks in anticipation
Shauna Kelly - 12 Jan 2008 00:40 GMT
Hi Fred
You might need to create a shortcut explicitly and use that. One way to
do that is to right-click the desktop and choose New > Shortcut. Browse
to your winword.exe file. After you create the shortcut, right-click it
and choose its Properties, then change the target to something like"
"C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE"
/mNameOfMacroToRun
Note the position of quote marks and spaces carefully.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
> Shauna
>
[quoted text clipped - 128 lines]
>> >
>> > Thanks in anticipation