![]() |
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
Add a macro to your normal template to call your 'Main' macro.
Code:
Sub AutoNew() Main End sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
![]()
Thank you Graham.
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with attaching template in AutoNew sub | jmasiak | Word VBA | 4 | 09-25-2020 08:07 AM |
![]() |
ksor | Word | 7 | 04-01-2018 05:10 PM |
![]() |
John9210 | Word | 13 | 02-12-2018 07:50 AM |
Auto-update field codes in Outlook Template - AutoOpen Macro not working | victoriasun | Outlook | 5 | 12-22-2015 01:54 AM |
Macro to open template not working | Brandi | Mail Merge | 2 | 06-24-2010 09:29 AM |