Hi there,
I have developed an Excel VB sheet to generate transcripts. The application is simple. But I don't know how to print the page with macro. Currently, I just copy-paste the generated transcript to Word and print it manually. This is not looking much professional. So I would like to make it automated.
Please help.
Excel Selection Print Excel VB sheet
Hi Albert,
It is very simple. You just issue the command PrintOut for the specified sheet. Suppose your transcript is in sheet 1. Then the command will be:
Sheet1.PrintOut
Excel Selection Print Excel VB sheet
Thanks. But this gives a print out of the whole page. I need to print some selected region in the sheet named transcript only.
Excel Selection Print Excel VB sheet
Then you have to just issue, Selection.Print instead of sheet.printout. This will print the selected region only.
Excel Selection Print Excel VB sheet
How do I select the region? I need the region to be selected automatically when I press the print button. After the region is selected, it should issue the Selection.Print command.
Excel Selection Print Excel VB sheet
Something like. Range("B3:L42").Select. This will select a rectangular region, with upper left cell B3 and lower right cell L42. Hope this helps.
Excel Selection Print Excel VB sheet
Thanks. It is solved finally!