![]() |
#6
|
||||
|
||||
![]()
You have to create the macro as shown on the web site and in the Help file. The Boolean options are there to provide the logging and error reporting. Based on your original macro it would need to be something like
Code:
Function QuickFormat(oDoc As Document) As Boolean Dim orng As Range Set orng = ActiveDocument.Range On Error GoTo err_Handler With orng.ParagraphFormat .SpaceBefore = 0 .SpaceBeforeAuto = False .SpaceAfter = 0 .SpaceAfterAuto = False .LineSpacingRule = wdLineSpaceSingle .CharacterUnitFirstLineIndent = 0 .LineUnitBefore = 0 .LineUnitAfter = 0 End With orng.LanguageID = wdEnglishAUS QuickFormat = True lbl_Exit: Exit Function err_Handler: QuickFormat = False Resume lbl_Exit End Function
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
docx, subdirectories, vba |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Peter Carter | Word VBA | 27 | 12-15-2022 04:10 PM |
![]() |
terenceyip | Word VBA | 4 | 03-20-2019 05:56 PM |
How to go through subdirectories in the following macro | Kazona | Word VBA | 0 | 09-09-2013 06:59 AM |
![]() |
Mhangoy | Word | 6 | 09-06-2013 06:57 AM |
Help! Can't Get Macro To Work In .docx Opened Off A Website | Mhangoy | Word VBA | 0 | 08-29-2013 03:02 AM |