Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Macro does not correct Words stubborness

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
computerkiller - 10 Jun 2007 03:52 GMT
I created the following AutoOpen macro to correct the fact Word would not
save my wishes for default settings, unfourunatly Word is still stubborn and
will not allow me my default settings. What else can I do? (Word 2003)

Sub AutoOpen()
'
' AutoOpen Macro
' Macro recorded 6/2/2007 by Dennis Barnum
'
   With AutoCorrect
       .CorrectSentenceCaps = False
       .CorrectInitialCaps = True
       .CorrectSentenceCaps = False
       .CorrectDays = True
       .CorrectCapsLock = True
       .ReplaceText = True
       .ReplaceTextFromSpellingChecker = True
       .CorrectKeyboardSetting = False
       .DisplayAutoCorrectOptions = True
       .CorrectTableCells = True
   End With
   Application.DisplayStatusBar = True
   Application.ShowWindowsInTaskbar = True
   Application.ShowStartupDialog = False
   With ActiveWindow
       .DisplayHorizontalScrollBar = True
       .DisplayVerticalScrollBar = True
       .DisplayLeftScrollBar = False
       .StyleAreaWidth = InchesToPoints(0)
       .DisplayVerticalRuler = True
       .DisplayRightRuler = False
       .DisplayScreenTips = True
       With .View
           .ShowAnimation = True
           .Draft = False
           .WrapToWindow = False
           .ShowPicturePlaceHolders = False
           .ShowFieldCodes = False
           .ShowBookmarks = False
           .FieldShading = wdFieldShadingWhenSelected
           .ShowTabs = False
           .ShowSpaces = False
           .ShowParagraphs = False
           .ShowHyphens = False
           .ShowHiddenText = False
           .ShowAll = False
           .ShowDrawings = True
           .ShowObjectAnchors = False
           .ShowTextBoundaries = False
           .ShowHighlight = True
           .DisplayPageBoundaries = True
           .DisplaySmartTags = True
       End With
   End With
   With Options
       .Pagination = True
       .WPHelp = False
       .WPDocNavKeys = False
       .ShortMenuNames = False
       .RTFInClipboard = True
       .BlueScreen = False
       .EnableSound = False
       .ConfirmConversions = False
       .UpdateLinksAtOpen = True
       .SendMailAttach = True
       .MeasurementUnit = wdInches
       .AllowPixelUnits = False
       .AllowReadingMode = True
       .AnimateScreenMovements = True
       .VirusProtection = False
       .ApplyFarEastFontsToAscii = True
       .InterpretHighAnsi = wdHighAnsiIsHighAnsi
       .BackgroundOpen = False
       .AutoCreateNewDrawings = True
   End With
   Application.DisplayRecentFiles = True
   RecentFiles.Maximum = 4
   With ActiveDocument.Styles(wdStyleNormal).Font
       If .NameFarEast = .NameAscii Then
           .NameAscii = ""
       End If
       .NameFarEast = ""
   End With
   With ActiveDocument.PageSetup
       .LineNumbering.Active = False
       .Orientation = wdOrientPortrait
       .TopMargin = InchesToPoints(0.7)
       .BottomMargin = InchesToPoints(0.7)
       .LeftMargin = InchesToPoints(0.7)
       .RightMargin = InchesToPoints(0.7)
       .Gutter = InchesToPoints(0)
       .HeaderDistance = InchesToPoints(0.5)
       .FooterDistance = InchesToPoints(0.5)
       .PageWidth = InchesToPoints(8.5)
       .PageHeight = InchesToPoints(11)
       .FirstPageTray = wdPrinterDefaultBin
       .OtherPagesTray = wdPrinterDefaultBin
       .SectionStart = wdSectionNewPage
       .OddAndEvenPagesHeaderFooter = False
       .DifferentFirstPageHeaderFooter = False
       .VerticalAlignment = wdAlignVerticalTop
       .SuppressEndnotes = False
       .MirrorMargins = False
       .TwoPagesOnOne = False
       .BookFoldPrinting = False
       .BookFoldRevPrinting = False
       .BookFoldPrintingSheets = 1
       .GutterPos = wdGutterPosLeft
   End With
   WordBasic.ViewChanges
End Sub
Graham Mayor - 10 Jun 2007 06:54 GMT
Most of these settings are stored in settings sub key of the Word data key
in the registry - if that key is corrupt, the settings may not take. Delete
or rename the settings sub key to oldsettings and restart Word. See
http://www.gmayor.com/my_toolbars_are_missing.htm which will help you
identify the key.

Which settings do not stick?

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> I created the following AutoOpen macro to correct the fact Word would
> not save my wishes for default settings, unfourunatly Word is still
[quoted text clipped - 108 lines]
>    WordBasic.ViewChanges
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.