00:00Would you like to learn how to print multiple copies of your Excel worksheet with a single click?
00:05Then you're gonna love this video. So let's get started. On your Excel workbook, you're gonna press
00:10alternate F11 to open a VBA editor. Over here, you're gonna paste this subroutine. If you'd like
00:16a copy of this subroutine, please leave a request on the comment section and I'll show you how you
00:20can get it. After that, you're gonna press Ctrl S to save and close your VBA editor. Over here,
00:25you're gonna add a brand new button. Go to developer ribbon, insert, and this button from
00:30the form control, click on it, and then paste that button anywhere on your worksheet here. After that,
00:37you're gonna scroll down and look for the subroutine called printed. Keep in mind that the sheet 47
00:41doesn't correlate with the sheet number that you have assigned on your workbook here. After that,
00:46click on OK. Now, when I click on this, you will notice that I get an error of 400. This
00:52generally
00:53happens if you have multiple worksheet on a single workbook. To get around it, you're gonna have to
00:58modify your VBA like this. Let's click on OK here and press alternate F11 to open your VBA editor.
01:04In your VBA, you're gonna have to explicitly specify the worksheet name and then associate the variable
01:10worksheet, which is WS, with printout and range statement like this. After that, press Ctrl S to save
01:17and close your VBA editor. Now, if you click the button, you can see that the print job has already
01:23begun.
Comments