View Single Post
 
Old 06-23-2021, 08:03 PM
jec1 jec1 is offline Windows 7 32bit Office 2013
Advanced Beginner
 
Join Date: Jan 2012
Posts: 84
jec1 is on a distinguished road
Default AutoNew macro not working in Normal template

Hi, when I create a New Word document from the Normal Template it does not automatically fire this macro. AutoExec - doesn't work because the Application is not open. Does anyone know how to make it work automatically without playing the macro?


Module AutoNew

Sub Main()
'StylePane Open
With Application
.TaskPanes(wdTaskPaneFormatting).Visible = True
.CommandBars("Styles").Position = msoBarRight
.CommandBars("Styles").Width = 300
End With
' ActiveWindow.DocumentMap = False
End Sub
Reply With Quote