Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Margin Lines in Print-Preview Mode

Hi

thanks for that. I was hoping the response would definitively say whether
this feature (or property) can be controlled form VBA itself rather than
being turned on at the keyboard.

with apologies to all pragmatists in the newsgroup :)

thanks

Tim


"JLGWhiz" wrote in message
...
This is from VBA help files:

With Worksheets(1).PageSetup
.LeftMargin = Application.InchesToPoints(0.5)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1.5)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
End With

You just need to be in the correct mode. PageSetup is where the margins
are
set.

"Tim & Sue Childs" wrote:

Hi

Is it possible to programmatically control ahving the print margins
appear
on a print preview. At the moment, I have a print macro and have to press
the "Margins" button (great hardship!!) to get this to happen, but would
like these to be in plae under the control of VBA.

Thanks in advance

Tim




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clear print preview dotted lines? ppsa Excel Programming 1 September 21st 07 10:00 PM
Why do some grid lines not show in print preview? Swamp Excel Discussion (Misc queries) 5 September 5th 06 04:34 PM
Print Preview Dotted Lines MCC-SusanC Excel Discussion (Misc queries) 1 August 7th 06 03:41 PM
unable to adjust bottom margin in print preview screen GongShow94 Excel Discussion (Misc queries) 0 March 2nd 06 12:40 AM
Print Preview Mode - without giant Page 1 beata Excel Discussion (Misc queries) 1 December 28th 05 11:07 PM


All times are GMT +1. The time now is 12:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"