Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 5,600
Default EXcel Chart Size Probelm with Printer - Please Help

Sub test()
Dim hp As HPageBreak, vp As VPageBreak
Dim ws As Worksheet

Set ws = Worksheets(3)
With ws
' .Range("a100, z1") = 1
Set vp = .VPageBreaks(1)
Set hp = .HPageBreaks(1)
' .Range("a100, z1").Clear
End With

With vp.Location
Debug.Print .Address, .Column, .Left
End With

With hp.Location
Debug.Print .Address, .Row, .Height
End With

End Sub

Regards,
Peter T


"Dennis Macdonald" wrote in message
...
Yes, sometimes one and sometimes many per page -this iis why I needed
the page sizes.

I have been working on this a lot more and I think using VPageBreaks
and HPageBreaks may be a better solution.

Excel shows the page markers on the screen with the small dashed line
both vertically and horizontally.

Do you know how to determine which cell these are on via VBA?

Thanks,
DEnnis.



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
Probelm opening Excel speadsheets John[_16_] Excel Discussion (Misc queries) 1 April 8th 08 10:06 PM
Excel chart size macdad Charts and Charting in Excel 7 May 14th 06 01:10 AM
Probelm opening an excel 2000 file in excel 2003 Mark Excel Discussion (Misc queries) 1 February 13th 06 07:47 AM
Setting Print Size for varying Printer use indigo Excel Programming 6 June 11th 04 05:38 PM


All times are GMT +1. The time now is 08:59 AM.

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

About Us

"It's about Microsoft Excel"