Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming,comp.lang.basic.visual.misc
|
|||
|
|||
![]()
Hi,
Is there a way to get a page width (either in points or inches) from Excel directly? I had to write my own VB function (see below) just for Letter and Legal paper but wonder if there is a better way to do it. ============================== Function PageWidth(xlWB As Excel.Workbook) As Single With xlWB.ActiveSheet.PageSetup If .Orientation = xlPortrait Then PageWidth = 8.5 ElseIf .PaperSize = xlPaperLetter Then PageWidth = 11 ElseIf .PaperSize = xlPaperLegal Then PageWidth = 14 Else PageWidth = 0 End If End With End Function ============================== |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
what is 11" X 17" paper size called in excel page setup? | Excel Discussion (Misc queries) | |||
w/excel how can I have half a page width differ from bottom | Excel Discussion (Misc queries) | |||
Measuring cell width and height for printed paper | Excel Discussion (Misc queries) | |||
Excel 2003 - PAGE SETUP - FIT TO WIDTH does not work | Excel Discussion (Misc queries) | |||
Adjust an Excel table with the width of a Word page | Excel Discussion (Misc queries) |