ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Page Setup functions very slow in VBA earlier thread (https://www.excelbanter.com/excel-programming/320005-re-page-setup-functions-very-slow-vba-re-earlier-thread.html)

Jeff[_44_]

Page Setup functions very slow in VBA earlier thread
 
Hi, I am trying to follow Tom's following advice on this topic and use
the Excel4 macro language to speed up a VBA print routine:

What does it mean "Set scale to a two-item horizontal array" ?
pscale = 1,4 OR pscale = (1,4) will not compile.


1,4)
isn't an array


{1,4}
would be an array


pscale = {1,4}


{1,4} is horizontal
{1;4} is vertical

I tried entering "pscale = {1,4}" but get a "Compile Error: Invalid
Character" message on this line.
Can anyone see my error?

Thanks,

Jeff


Jeff[_44_]

Page Setup functions very slow in VBA earlier thread
 
Ok, found my answer:

pscale = "{1,4}"

Jeff



All times are GMT +1. The time now is 11:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com