Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 07-14-2020, 03:44 PM
melburn melburn is offline non-DOC default format Windows 7 32bit non-DOC default format Office 97-2003
Novice
non-DOC default format
 
Join Date: Jul 2019
Posts: 6
melburn is on a distinguished road
Default non-DOC default format

An update on how Paul's assistance led me to a functional macro

Rather than restricting to .txt and .log changed the code for a macro I could apply to any file.

Code:
Sub LandscapeLST9()
'
' LandscapeLST9 Macro
'
Application.ScreenUpdating = False
Dim i As Long
  With ActiveDocument
        .PageSetup.Orientation = wdOrientLandscape
        .PageSetup.TopMargin = CentimetersToPoints(0.6)
        .PageSetup.BottomMargin = CentimetersToPoints(0.6)
        .PageSetup.LeftMargin = CentimetersToPoints(0.6)
        .PageSetup.RightMargin = CentimetersToPoints(0.6)
   End With

  With Selection.Font
   .Name = "Lucida Sans Typewriter"
   .Size = 9

  End With
 Application.ScreenUpdating = True

End Sub

Many thanks Paul
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default date format gebobs Excel 0 03-03-2015 10:16 AM
non-DOC default format How can I set *.doc as default save format and NOT *.docx? pstein Word 1 01-11-2012 09:30 AM
Format Picture... Is there a Style-like default? Bobosmite Word 0 07-19-2010 06:26 PM
How to set Message Format default TonyBender Outlook 0 10-27-2009 11:52 AM
non-DOC default format Default Number Format boutells Excel 1 05-20-2009 02:46 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft