K
kurt
I have a some autotexts stored in a template which is currently saved in
c:\word startup\firm.dot. Some of the currently language is:
If frmreplacepi.txtattyinitials = "agq" Then
Set MyTemplate = Templates("c:\word startup\firm.dot")
MyTemplate.AutoTextEntries("/agqpi").Insert _
Where:=Selection.Range, RichText:=True
I need to change the location of the firm.dot to C:\Documents and
Settings\USERNAME\Application Data\Microsoft\Word\startup, and then adjust
the language to read:
If frmreplacepi.txtattyinitials = "agq" Then
Set MyTemplate = Templates("C:\Documents and
Settings\USERNAME\Application Data\Microsoft\Word\startup\firm.dot")
MyTemplate.AutoTextEntries("/agqpi").Insert _
Where:=Selection.Range, RichText:=True
What do I use instead of "username" in this path so the macro works on every
pc, WITHOUT having to add the name of each person to this path? I've tried
%username%, etc, but no luck so far.
THANKS SO MUCH!
Kurt
c:\word startup\firm.dot. Some of the currently language is:
If frmreplacepi.txtattyinitials = "agq" Then
Set MyTemplate = Templates("c:\word startup\firm.dot")
MyTemplate.AutoTextEntries("/agqpi").Insert _
Where:=Selection.Range, RichText:=True
I need to change the location of the firm.dot to C:\Documents and
Settings\USERNAME\Application Data\Microsoft\Word\startup, and then adjust
the language to read:
If frmreplacepi.txtattyinitials = "agq" Then
Set MyTemplate = Templates("C:\Documents and
Settings\USERNAME\Application Data\Microsoft\Word\startup\firm.dot")
MyTemplate.AutoTextEntries("/agqpi").Insert _
Where:=Selection.Range, RichText:=True
What do I use instead of "username" in this path so the macro works on every
pc, WITHOUT having to add the name of each person to this path? I've tried
%username%, etc, but no luck so far.
THANKS SO MUCH!
Kurt