![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Oct 2003
Posts: 716
|
Sorry if this appears a dumb question but can't find the answer anywhere!
I need to create and print a CD cover and have the dimensions of 119 x 120mm but the width/heights of cells are not in real measurements, metric or otherwise. Can you explain how I can view actual print dimensions without me having to use trial and error and countless pages of A4? Many thanks! |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Jul 2002
Posts: 32,030
|
In VBA the Height and Width properties of a Range object return values in points (1/72nd of an inch). They are read-only so you would still need trial and error with the RowHeight and ColumnWidth.
Or you could try setting the margins so that the printable area is what you want and shrink to fit. |
|
|
|
|
|
#3 |
|
Join Date: Oct 2003
Posts: 716
|
Oh well, thanks for your help anyway, Andrew!
|
|
|
|
|
|
#4 |
|
Join Date: Oct 2003
Posts: 716
|
Thinking about it differently, is there a conversion factor for cell height & width e.g. 10 cell height units = x number of mm and 10 cell width units = x number of mm?
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
|
This macro --
Sub foo() Cells(1, 1) = (Cells(1, 1).Height / 72) Cells(2, 1) = (Cells(1, 1).Width / 72) End Sub puts A1'a cell hieght and width in terms of inches in A1 and A2. Then this formula set =CONVERT(A1,"in","mm") =CONVERT(A2,"in","mm") in unused cells converts to mm. |
|
|
|
|
|
#6 |
|
Join Date: Oct 2003
Posts: 716
|
Jon - that's just what I needed!
Thanks a lot! |
|
|
|
|
|
#7 |
|
MrExcel MVP
Join Date: Sep 2002
Location: Alabama/State of Disarray
Posts: 10,473
|
Keep on runnin', zoso.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|