Re: Getting values of pagesetup for passing arguments to xl4 page.setup function.
From: masayoshi hayashi (mhayashi_jp_at_yahoo.com)
Date: 03/24/04
- Next message: Eric van Uden: "Remove code module automatically"
- Previous message: PaulS: "COPY/PASTE NON-ADJACENT COLUMNS"
- In reply to: Tom Ogilvy: "Re: Getting values of pagesetup for passing arguments to xl4 page.setup function."
- Messages sorted by: [ date ] [ thread ]
Date: 24 Mar 2004 02:36:08 -0800
Thanks Tom for the links.
I figured out Get.Document() function returns page setup values. But
while attempting to extract a value from the array returned from
Get.Document(52),
it seems to return only a single value, not an array.
The macrofun help for Get.Document(52) function states:
52 Four-item horizontal array indicating the margin settings (left,
right, top, bottom) in the currently specified units.
In the Immediate window of Excel 2002, I tried
?ExecuteExcel4Macro("Get.Document(52)")
This returns a single value in Double for left margin.
?isarray(ExecuteExcel4Macro("Get.Document(52)"))
False
Am I missing something here or how would you get right, top and bottom
margin values from Get.Document(52) function?
- Next message: Eric van Uden: "Remove code module automatically"
- Previous message: PaulS: "COPY/PASTE NON-ADJACENT COLUMNS"
- In reply to: Tom Ogilvy: "Re: Getting values of pagesetup for passing arguments to xl4 page.setup function."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|