LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Absolute Scale of Chart Printout

On Sep 14, 5:36*am, Joel wrote:
the problem is the screen is inj pixels and the page size is in inches. *The
mapping between the pixels and the inches is dependant on the print drive and
the size of you monitor. *One way to minimize the vairbles is to set the
printer option to scale to fit paper size. *Then in excel set the Print area.
*the you have to figure the number of pixels arre in the print areaa you
defined on the worksheet. *

The run this macro to find the number of pixels in your print area

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/14/2009 by jwarburg
'

'
StartRow = InputBox("Enter Start Row")
EndRow = InputBox("Enter End Row")
StartCol = InputBox("Enter Start Column")
EndCol = InputBox("Enter End Column")

PixelsRow = 0
For RowCount = StartRow To EndRow
* *PixelsRow = PixelsRow + Rows(RowCount).RowHeight
Next RowCount

PixelsCol = 0
For ColCount = StartCol To EndCol
* *PixelsCol = PixelsCol + Columns(ColCount).RowHeight
Next ColCount

MsgBox ("Your area is " & PixelsRow & " high by " & PixelsCol & " wide")
End Sub

The print scaling will scale proportionaly so the so you have to figure out
wha the scaling ratios are. *And then in the end you will havve to make minor
adjustments for the border area the print dirve is using or change the size
of the border.



"tchrapkiewicz" wrote:
Thanks, But I'm looking for a more well-defined approach.


anybody?


Thanks,
TomC


On Aug 23, 5:48 pm, Joel wrote:
The best way is to experiment manually. *The print menu has a scale option
and adjust the scale numbe to meet your requirements. *the workshet is
dimensioned in pixels and the only inch (cm) options ar on the print menu for
the border.


"tomcee" wrote:
I am generating charts with excel and would like it, when printed to
be at a specific scale.


For instance, I have a xy chart which has a circle plotted on a grid
that I would like to print as 10 squares per inch (or possible 2
squares per centemeter) grid on the paper, and the circle to be
precisely 3 inch diameter.


Any assistance or direction would be appreciated.


Thanks in advance,
TomC- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Joel:

Thank you very much! This seems to be what I was looking for. I'll
give it a try.

Regards,
TomC


 
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
Chart scale changes Steve D[_3_] Charts and Charting in Excel 0 April 8th 10 02:01 AM
Dynamically Scale Gantt Chart Time Scale Andrew Lavinsky Charts and Charting in Excel 2 January 31st 10 12:51 PM
How to draw chart: log scale on X axis, natural scale on y axis? Pratap D. chavan Charts and Charting in Excel 1 November 16th 06 08:03 AM
Huge differences in chart values screws my bar chart scale up. Sirritys Charts and Charting in Excel 2 June 13th 06 10:33 AM
vc++ automation: opening chart as chart window and setting scale Mike Biolsi Excel Programming 0 February 7th 04 08:13 AM


All times are GMT +1. The time now is 07:59 PM.

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"