K
kpm
I created a macro that takes a series of styles from the Normal.dot, and
copies them to the document that is currently opened. The macro runs fine,
but I would like to push it out to about 450 other users. The problem I have
is the macro specifically points to a single user's Normal.dot. Is there a
way to automatically point the macro to the current Normal that is loaded?
Any help or input would be greatly appreciated. Below is the macro:
Sub CopyStyles()
'
' Copy Styles Macro
' Macro recorded 12/2/2004 by Butzel Long
'
With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = "Normal"
End With
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 1", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 2", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 3", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 4", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 5", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 1", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 2", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 3", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 4", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 5", Object:= _
wdOrganizerObjectStyles
End Sub
copies them to the document that is currently opened. The macro runs fine,
but I would like to push it out to about 450 other users. The problem I have
is the macro specifically points to a single user's Normal.dot. Is there a
way to automatically point the macro to the current Normal that is loaded?
Any help or input would be greatly appreciated. Below is the macro:
Sub CopyStyles()
'
' Copy Styles Macro
' Macro recorded 12/2/2004 by Butzel Long
'
With ActiveDocument
.UpdateStylesOnOpen = False
.AttachedTemplate = "Normal"
End With
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 1", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 2", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 3", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 4", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="TOC 5", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 1", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 2", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 3", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 4", Object:= _
wdOrganizerObjectStyles
Application.OrganizerCopy Source:= _
"C:\Documents and Settings\maaske\Application
Data\Microsoft\Templates\Normal.dot" _
, Destination:=ActiveDocument.FullName, Name:="Heading 5", Object:= _
wdOrganizerObjectStyles
End Sub