Kamikaze
08-22-2007, 04:03 AM
Hi all,
I have wrote a small addin that performs a few actions, it will sit in the STARTUP folder of various machines.
The first thing the template does is check if a particular dll exists
If fsoWS.FileExists("c:\program files\ws\ws.dll") Then
depending on this result it will then programatically add this library for use with the rest of the functionality.
Templates(1).VBProject.References.AddFromFile ("C:\Program Files\ws\ws.dll")
This obviously changes the state of Templates(1).saved to false so i then change it back to true.
Templates(1).Saved = True
The problem is that it still prompts to save the template and that is something that can not happen in my situation.
I did read this article that mentions that if you use an embedded object or activex control resetting the flag does not always reset its "dirty" state.
http://support.microsoft.com/kb/325620
This applies to office xp though and i am using office 2003.
Has anyone experienced something like this, anyone have any suggestions at all as i have tried absolutely everything i can think of.
Many thanks
Tim
I have wrote a small addin that performs a few actions, it will sit in the STARTUP folder of various machines.
The first thing the template does is check if a particular dll exists
If fsoWS.FileExists("c:\program files\ws\ws.dll") Then
depending on this result it will then programatically add this library for use with the rest of the functionality.
Templates(1).VBProject.References.AddFromFile ("C:\Program Files\ws\ws.dll")
This obviously changes the state of Templates(1).saved to false so i then change it back to true.
Templates(1).Saved = True
The problem is that it still prompts to save the template and that is something that can not happen in my situation.
I did read this article that mentions that if you use an embedded object or activex control resetting the flag does not always reset its "dirty" state.
http://support.microsoft.com/kb/325620
This applies to office xp though and i am using office 2003.
Has anyone experienced something like this, anyone have any suggestions at all as i have tried absolutely everything i can think of.
Many thanks
Tim