Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Excel page width in pixels?

I am setting up a formatted sheet to be a purchase order and am placing
several shape objects and such.

It would be helpful to know the maximum number of pixel that will fit onto
the printed page; of course depending on the page setup... paper size,
margins, etc.
Somewhere Excel decides whether a column will fit in the page area or print
on another page.

Is there an object that exposed this value? or even the paper size in
inches?

I tried to calculated it myself with
numOfChars = (Application.InchesToPoints(8.5) - (leftmrgn + rightmrgn))
/ (Application.StandardFontSize)

which incorrectly yields the value 46.1, when I can actually fit much more.

Also the .StandardFontSize is calculated on the present fonts "0" char. Is
it possible to find that number.

GOALS:
to be able to place items relative to the right margin
to be able to determine how many formatted columns I can fit on the page;
eg. Columns("A:E").width = pagesize / 5

any help would be appreciated


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
how can we change units of column width to pixels? sappi Excel Discussion (Misc queries) 1 March 10th 09 05:18 AM
column pixels vs column width Marc C Excel Discussion (Misc queries) 2 March 20th 08 11:21 PM
some columns 30 characters 155 pixels others 310 pixels why vurden Excel Discussion (Misc queries) 2 April 26th 05 03:30 AM
Excel: Paper Page Width Kurt Remlin Excel Programming 2 May 7th 04 06:25 PM
Column width in pixels how? robbie de sutter Excel Programming 2 August 20th 03 08:41 AM


All times are GMT +1. The time now is 09:50 PM.

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"