Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » VBA code for printing documents
Resolved · Medium Priority · Version 2003
Eoin has attended:
Excel VBA Intro Intermediate course
I would like to add some code at the end of a macro to print the excel page(s) I'm working on, could you please let me know how I do this?
Hi Eoin, thanks for your query. The simplest way to get the code to do this is to record a macro of you printing the spreadsheet. Try this code at the end of your subroutine, it should print out the active worksheet:
ActiveWindow.SelectedSheets.PrintOut Copies:=1
Hope this helps,
Anthony
|
Excel tip:Formst Excel to display leading zeroesSelect the cells that you want to have displaying leading zeroes. |
We'll call during UK business hours
Server loaded in 0.07 secs.