Hi Folks,
Is it possible to edit an existing Word macro (contained in the Normal.dot) using VBA/VBScript rather than manually as I have about 110 computers to update? I can't find a way to do this after looking at the help pages within the VB editor or most other places I look. I can find plenty of examples of editing Autotext entries but nothing on Macros.
We are moving from locally saved templates to server based but I need to update the paths to the templates on the existing macros on each machine first.
The existing code for each Macro is this:
Sub Letter()
'
' Letter Macro
'
Documents.Add Template:= _
"C:\Program Files\Microsoft Office\Templates\LtrBlank.dot", NewTemplate:= _
False
End Sub
The path to the file just needs to be updated to point to a server location via a mapped drive.
If anyone has any pointers or code examples I'd be greatful
--
Chris
Is it possible to edit an existing Word macro (contained in the Normal.dot) using VBA/VBScript rather than manually as I have about 110 computers to update? I can't find a way to do this after looking at the help pages within the VB editor or most other places I look. I can find plenty of examples of editing Autotext entries but nothing on Macros.
We are moving from locally saved templates to server based but I need to update the paths to the templates on the existing macros on each machine first.
The existing code for each Macro is this:
Sub Letter()
'
' Letter Macro
'
Documents.Add Template:= _
"C:\Program Files\Microsoft Office\Templates\LtrBlank.dot", NewTemplate:= _
False
End Sub
The path to the file just needs to be updated to point to a server location via a mapped drive.
If anyone has any pointers or code examples I'd be greatful
--
Chris