Hello.
I have some code:
I run this code from MS Access.
When I do this, the print is quite small (but it has to be this way). However, I find that if I go Excel and got to File > Print Preview > Setup, I can click on Adjust to ##% normal size. Here I increase the % scale by 2-8%. The document still prints 1 page tall and three wide (my challenge is getting it 1 page tall; the "wideness" isn't that critical), but the print is much easier to read. So, basically, Excel is overcompensating a bit when it does the "fittopagestall, fittopageswide" routine.
What I'd like to do in my MS Access code, is set the fittopagestall and wide, then obtain the number that is in the "Adjust to ##% normal size" box. Then I would simply add three or four percent to this number to make the document print in the correct page format, but also with the biggest font possible on the printed page.
I can say xlwks.pagesetup.zoom=[someliteralvaluelike,say,52]. This works. However, I don't know what that number should always be. That's why I need to retrieve the number that Excel keeps in that little "Adjust to ##% normal size" field.
The challenge is that, of course, if you use the "fittopagestall, fittopageswide" routine, you also have to set zoom=false. So if I try to catch the "Adjust to ##% normal size" number by saying:
I get an error, since at this point, xlwks.pagesetup.zoom=false.
Is this making sense??!! *&^*&
Any help you can provide will be very much appreciated.
Thank you!!
-Mike
I have some code:
Code:
set xlwks=excel.worksheet
with xlwks.pagesetup
zoom=false
fittotpagestall=1
fittopageswide=3
end with
I run this code from MS Access.
When I do this, the print is quite small (but it has to be this way). However, I find that if I go Excel and got to File > Print Preview > Setup, I can click on Adjust to ##% normal size. Here I increase the % scale by 2-8%. The document still prints 1 page tall and three wide (my challenge is getting it 1 page tall; the "wideness" isn't that critical), but the print is much easier to read. So, basically, Excel is overcompensating a bit when it does the "fittopagestall, fittopageswide" routine.
What I'd like to do in my MS Access code, is set the fittopagestall and wide, then obtain the number that is in the "Adjust to ##% normal size" box. Then I would simply add three or four percent to this number to make the document print in the correct page format, but also with the biggest font possible on the printed page.
I can say xlwks.pagesetup.zoom=[someliteralvaluelike,say,52]. This works. However, I don't know what that number should always be. That's why I need to retrieve the number that Excel keeps in that little "Adjust to ##% normal size" field.
The challenge is that, of course, if you use the "fittopagestall, fittopageswide" routine, you also have to set zoom=false. So if I try to catch the "Adjust to ##% normal size" number by saying:
Code:
xlwks.pagesetup.zoom=xlwks.pagesetup.zoom+3
I get an error, since at this point, xlwks.pagesetup.zoom=false.
Is this making sense??!! *&^*&
Any help you can provide will be very much appreciated.
Thank you!!
-Mike