Premium Only Content
Excel List Box to Display & Print Multiple Sheets as ONE Print Job with VBA
May 2, 2019 Excel VBA & Macros Tutorials
In this Excel VBA & macros tutorial, learn how to automatically display all worksheets in an Excel ActiveX List Box and print multiple sheets as one print job. You can also use the same code to print preview multiple worksheets in one Excel print preview window.
★ Complete Excel VBA and macros course: https://courses.xelplus.com/p/excel-vba-excel-macros
This VBA tutorial builds on the a previous video where we displayed all worksheets in an Excel ActiveX Combo Box - selecting a sheet name from the combo box, sent the user to the respective sheet.
This time we will be using an ActiveX ListBox to allow the user to print the selected sheets in one go. We will use the Excel Worksheet Activate event to automatically populate the list of sheet names in the List Box.
We will then use the VBA For Next Loop to create a string array of the sheet names that were selected. To do this, we will use the VBA redim preserve command.
Finally we assign a command button (and later an icon) to run the macro once the user clicks it.
Aside from this, you will also learn how to debug your macros by stepping into the VBA code and using the locals window. You also learn about VBA's object library and how you can search for specific objects to learn which methods, properties and events are associated with them.
⯆ DOWNLOAD the workbook here: https://www.xelplus.com/list-box-to-print-multiple-sheets-excel-vba/
LINKS to related videos - Excel ActiveX Combo Box to Select Sheets with VBA: https://rumble.com/v2u8htm
★ My Online Excel Courses ► https://courses.xelplus.com
✉ Subscribe & get my TOP 10 Excel formulas e-book for free
https://www.xelplus.com/free-ebook/
EXCEL RESOURCES I Recommend: https://www.xelplus.com/resources/
Get Office 365: https://microsoft.msafflnk.net/15OEg
Microsoft Surface: https://microsoft.msafflnk.net/c/1327040/451518/7593
GEAR
Camera: https://amzn.to/2FLiFho
Screen recorder: http://techsmith.pxf.io/c/1252781/347799/5161
Microphone: https://amzn.to/2DVKstA
Lights: http://amzn.to/2eJKg1U
More resources on my Amazon page: https://www.amazon.com/shop/leilagharani
Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
#MsExcel #ExcelVBA #LeilaGharani
-
LIVE
Matt Kohrs
10 hours ago🔴[LIVE] STOCKS PLUMMET || The MK Show
1,787 watching -
37:02
BonginoReport
4 hours agoTrump's Greatest Cabinet Pick (Ep.88) - 11/19/24
80.7K103 -
LIVE
Vigilant News Network
14 hours agoBombshell COVID Vaccine Study PROVES Deaths | The Daily Dose
1,907 watching -
LIVE
2 MIKES LIVE
2 hours agoThe Mike Schwartz Show 11-19-2024
738 watching -
1:17:12
Game On!
10 hours ago $5.38 earnedThe Dallas Cowboys are NOT a serious NFL franchise!
39.3K1 -
1:21:04
PMG
10 hours ago $13.76 earned"Trump's Plan to "SHATTER THE DEEP STATE" Revealed!"
40.1K14 -
18:09
Clownfish TV
22 hours agoBluesky is 2017 Twitter All Over Again...
100K49 -
13:27
IsaacButterfield
5 days ago $18.41 earnedI'm Scared
70.9K65 -
6:11
Dr. Nick Zyrowski
1 day ago4 Things I Never Do As A Doctor - Must See!
65.6K19 -
12:26
RTT: Guns & Gear
19 hours ago $19.44 earnedLevel Up Your Sig P365 With XTech Tactical
75.9K11