Macro help needed plx

Geancanch

New Member
Joined
Mar 10, 2009
Messages
9
Hi guys,

Trying to figure out how I can insert a button that will print sheet 1 on an A4 sheet from tray 1 of the printer, and then print sheet 2 on an A5 sheet from tray 2 of the printer. I figured that a macro would be able to do this, but I am unsure of how to create such a beast.

Any help would be greatly appreciated.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
Welcome to the Board!

Maybe try recording the macro, while you perform the task and see if that works. If not it will probably need to be done with sendkeys, but I cannot help you with that because I do not have any way of testing the sendkeys because I do not have a 2 tray printer and A4 or A5 sheets at home.

You could probably use a search engine to search for sendkeys for printing to tray 2 or something.

Hope that helps.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,493
Messages
5,837,684
Members
430,509
Latest member
steve85215

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top