![]() |
#1
|
||||
|
||||
![]()
I have a macro that is supposed to get the page size of a given document and return that value to a string in a textbox. My problem is that if I have a page with the dimensions 36"x 60" it comes back as some huge decimal number like 29.9987689656" x 60.00217592675".
How can I narrow this down to no decimal places?
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#3
|
||||
|
||||
![]()
huh? Don't understand...
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#4
|
||||
|
||||
![]()
that's strange and looks like a bug or something is crippled in document maybe, mine draw vba gives precise numbers if size is specified in inches
maybe ActiveDocument.Pages(0).SizeWidth or ActiveDocument.MasterPage.SizeWidth would suit if pages are of the same size throughout the document. anyway round(29.99726367236,1) will give 30 exactly where 1 is number of decimal places |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page Size List.... !??!?! | Booker | General | 2 | 19-06-2006 12:09 |
Processing Just the Active Page - help! | knowbodynow | CorelDRAW/Corel DESIGNER VBA | 6 | 18-05-2006 21:26 |
Select specified text, change font size? | fiddler2b | CorelDRAW/Corel DESIGNER VBA | 3 | 23-04-2006 08:11 |
Property Bar shows incorrect page size | Alex | FAQ | 1 | 29-11-2005 08:34 |
Printer page size and orientation from VBA | narcix | CorelDRAW/Corel DESIGNER VBA | 9 | 17-10-2003 14:54 |