I have created a macro that will print out my workbook on Excel. I have linked a button to the macro and then I have recorded it to print as an XPS document and this works correctly once completed. However, when I close the workbook and reopen it again and press the button which links to the print macro it prints to the default printer, but not the XPS one which I originally recorded it as in the macro.
Is there a simple way to fix this problem so that it prints as an XPS and not to my default printer? So far i have tried adding the following to my macro:
Application.ActivePrinter = _ "Microsoft XPS Document Writer"
Why isn't this method working?
On Error Resume Next
– SeanC