Quote:
Originally Posted by Charles Kenyon
Are your users using your custom UI or just the resulting document?
They are creating documents to go to someone else using your Custom UI?
|
Mostly, they are using internal documents that can be sent across our company.
Quote:
Originally Posted by Charles Kenyon
If in code, you refer to ThisDocument instead of ActiveDocument it gives reference to the file holding the code.
|
Yes, that's what I'm using in the 'Add' command, as mentioned in my original posting.
Quote:
Originally Posted by Charles Kenyon
Global templates go in the Word Startup Folder. I can give you code to identify this folder if you need it.
[
|
That's where I have them loaded already. I have a template that I created a year ago that creates new documents without the customUI, as well as the one I'm working on now that does.
Perhaps I misunderstood what you meant by 'global template'. I was reading that as a separate template file with the UI and VBA code, and a separate template file with the content with no UI and VBA code. Currently, the template file has the content and the UI and VBA. It is stored in the 'Startup Folder' as mentioned in my original posting.
Quote:
Originally Posted by Charles Kenyon
FONT=verdana,arial,helvetica]? Application.StartupPath in the Immediate Window identifies it.[/FONT]
Here is a macro
Code:
Sub ShowStartUpPath()
' Macro written by Charles Kenyon 2014-02-25
' Shows setting for Startup Folder location in Microsoft Word in a message box.
'
MsgBox _
Prompt:="Your StartUp folder location is " & _
Application.StartupPath & _
"." & Chr(13) & Chr(10) & Chr(13) & Chr(10) & ".", _
Buttons:=vbOKOnly, _
Title:="Current Startup Folder Setting Information"
'
End Sub
|