Тёмный

Excel List Box to Display & Print Multiple Sheets as ONE Print Job with VBA 

Leila Gharani
Подписаться 2,7 млн
Просмотров 86 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 172   
@LeilaGharani
@LeilaGharani 8 месяцев назад
Grab the file I used in the video from here 👉 pages.xelplus.com/vba-listbox-file
@debayanbanerjee
@debayanbanerjee 2 года назад
Hei. I am just facing one issue with this tutorial that is not matching mine. The cursor does not select the sheet inside the list box. Only when I go out of the listbox boundary and click something else outside, does the selection update. Why is that?
@The_Doctor1224
@The_Doctor1224 2 года назад
Hi Debayan, I'm currently having the same issue. Were you able to figure this out?
@debayanbanerjee
@debayanbanerjee 2 года назад
@@The_Doctor1224 It is workikg, you just have to work with better screen resolution. Are you working on multiple screens with different resolutions?
@vhc6600
@vhc6600 5 лет назад
Hi Leila, is it possible to use a multi select enabled list box to "insert" criteria for sumproduct ? ... ie I want to use sumproduct to do a sum based on OR criteria logic and point to the listbox selection ?
@russellfry2148
@russellfry2148 4 года назад
Hello. Instead of PrintOut, how would you go about saving as a .pdf? Thank you.
@MasGesHusni
@MasGesHusni 7 месяцев назад
dear LeilaGharani, is it possible to do that in listbox userform? cause the video is in listbox worksheet
@mimexicomaxico
@mimexicomaxico 3 года назад
I love you Leila... Justo lo que buscaba... saludos desde Mi México Máxico (Mágico)
@TheHellis
@TheHellis 5 лет назад
Regarding your little "hack" at the end. You could have made the code in a module and had sheet_activate run the module sub, then in workbook_open link to the same module sub. That way you don't force the user to a different sheet, and you can open the workbook on print sheet and it will be updated
@LeilaGharani
@LeilaGharani 5 лет назад
Thank you for sharing - with VBA just like formulas you have so many ways of handling the same tasks. It's good to see the feedback from others.
@maheshbabu_1888
@maheshbabu_1888 4 года назад
Can we use RowSource property....for specific range....but for different sheets.......for example we use ListBox1.RowSource = "Sheet1!D21:F30" ... In the above code instead of Sheet 1 if we use ComboBox1.value.......then it doesn't work if ComboBox1.value is sheet name.......any suggestions..**no one answered me till date** I just wanted data to show in listbox with fix range"B61:G75" from different sheet i.e after changing combobox which contains sheets name.....pls help....if you can do this...
@anwarsha3820
@anwarsha3820 2 года назад
HI Leila Gharani... I really appreciate on your effort to make this video. It's teach me a lot of new thing to do in excel. Really thanks for it. HErewith I have a query that I would like to get your assitant on it... I would like to create in excel sheet the population of my neighborhood by create the command box or tex box the number of house. When ever we click the textbox or command box with the number of house, the detail of the owner of the house can be display either in print preview or in tabulation. CAn you assist me on it. I have to solve it, but unable to get it... appreciate your assitant on it. Thank you...
@Harycan0
@Harycan0 Год назад
Fantastic video, unbelievable Beautiful lady, thank you very mech 💕💕💕 , really , really fantastick .
@piyushagarwal1096
@piyushagarwal1096 3 года назад
I have excel file which contain 100 invoice number. Now I want to search those invoices from a folder which contain 2000 files. Now I want to search 100 invoice and print at one ago. It's is possible with VBA.
@dennisbott2069
@dennisbott2069 Год назад
My list box keeps changing sizes after I close the worksheet, It will then sometimes cover my print preview option. Any suggestions to lock size and location of list box?
@liahu486
@liahu486 7 месяцев назад
Hi Leila! I want to do this, but for several specific print areas within the same sheet. I can’t figure out how to do this. I created defined names for the different print areas and put them in an activex list box, but i’m not sure how to write the VBA code for it or what to do next.
@wavecasualgamingparent
@wavecasualgamingparent 4 года назад
How do I list only the visable sheet? I don't want my hidden sheet show up in the list.
@Harycan0
@Harycan0 Год назад
Really apologize, can you suggest, after each opening and close the file the text box become smoler and smoler automatically.😢
@jee-zaldvillaflores1989
@jee-zaldvillaflores1989 2 года назад
hi maam Leila Gharani, nice video tutorial... and please do a tutorial on how to create a bold function in excel, on how to bold a specific text in a string formula... thanks in advance.
@easanalyticssolutions1299
@easanalyticssolutions1299 2 года назад
Hello, Thanks for the good work. What is the VBA code that i would use if i want to print all school report forms using a single button.??
@ساجدصديق
@ساجدصديق 4 года назад
Very cool But it does not work well when I hide the tabs and changes in the sheet formatting. When the tabs appear, it works well. I don’t know what the problem is. I don’t want to show the tabs
@mohit8460
@mohit8460 2 года назад
Hi, how to create pdf of hidden and locked worksheets through VBA code, please do share some video on this..... it's a plight 🙏
@simonalqasab4301
@simonalqasab4301 Год назад
Hi ..Is there a way to transfer information from listbox 1 to listbox 2 with a number of columns..
@yangliengheng8571
@yangliengheng8571 2 года назад
I have a table with student info, then I want to print student card base one student info in the table, however, is there a way to just want click then can print all student card.
@casimirpierce744
@casimirpierce744 4 года назад
I am using Excel 2007 and tried this code but for some reason i can select only one sheet in the Listbox.
@OmarAhmad-ql8sz
@OmarAhmad-ql8sz Год назад
Hi Instead of list box can I use sheet 2 and cell B2 to B10 to print the sheets with that names without selsctin them
@shamusahmed4881
@shamusahmed4881 2 года назад
Can i print all sale invoices with a delivery notes simultaneously,formulas in sheets is data validation,idea,if
@shotsbyfizza
@shotsbyfizza 2 года назад
What if we only want the last some sheets to be visible in the listbox to avoid clutter and unnecessary sheet names?
@emiliaalejandrakuschnir5199
For Mac users ActiveX is not available. What other solution is there?
@FrancisDCosta
@FrancisDCosta 5 лет назад
Leila, I would like to embed an insurance rates calculator on my website so customers can can check their insurance quotes. How can I do that or can I use your services in the respect? Thanks.
@aminkhaziravi9926
@aminkhaziravi9926 2 года назад
سلام میشه اموزش ساخت جدول جهت درج تاریخ از طریق vba بذارید
@kkzestyfoods
@kkzestyfoods Год назад
Is it possible to use this when here are separate excel fills and folders..
@Jordannahuwo622
@Jordannahuwo622 5 месяцев назад
Is it possible to print all (from drop down list) to a single pdf file ?
@francoislacombe1507
@francoislacombe1507 3 года назад
Hi Leila. I must say that you're my heroine 😁. I applied step by step the way to print many workseets at the sametime but I have an issue. Do hou have a webside where I could expose my problem? Thanks, François Montréal, Quebec(Canada)
@LeilaGharani
@LeilaGharani 3 года назад
It would probably be best if you would post it on Microsoft's Tech Community Platform for Excel: techcommunity.microsoft.com/t5/excel/bd-p/ExcelGeneral
@bluejay12293
@bluejay12293 2 года назад
my listbox is in a userform, how to make it like this?
@karthickraja4801
@karthickraja4801 5 лет назад
Hello Genius, We need help.. We are manufacturing company, we created cartoon box stickers in #excel sheet, but we are facing one problems we are added box numbers also, we want to print box numbers continously when we are taking print continue box numbers also examples we take 100 stickers starting 1to 100 box numbers to print continuesly Can any one know how to do this in Excel using #macro or #VBA #manufacturing COMMENTS
@djdisasterjames
@djdisasterjames 4 года назад
Why do you not use integer for i? By the way I got so much value from this video, I didn't know about the Locals window, Break, icons for macros, now I know byte is 0-254 and only takes up 1 byte instead of 2 for integers, I learned to populate listboxes and the difference between selections allowed, WOW. Thank you!
@rahuljadhav2363
@rahuljadhav2363 4 года назад
I need to print quite a few excel file to PDF with specific file name format. Examplefor file name is Invoice number_PO number_serial NUNBER Please help how to do it.
@ALG_1983
@ALG_1983 2 года назад
Greetings to you, Miss Truth. You have a wonderful and distinctive method of explanation and in a smooth language. I have Excel sheets for printing via Listbox, but after printing there is always a problem with the rest of the codes, so how can I send you the file. Sorry for the poor expression, it's just a translation
@johnheath5546
@johnheath5546 2 года назад
Great tutorial Leila! How can I get a question too you?
@walerij
@walerij 4 года назад
Leila, as I remember, it is impossible to print out, if more then one sheet is selected in the workbook which is protected. Also UserInferfaceOnly doesn`t help in this case. VBA return an error. If you could give me a hint ...
@CloudStudio1
@CloudStudio1 5 лет назад
Hi. I want to print a searchable drop down list from a worksheet. My drop down list is in worksheet "Form 138" and is found in cell "R15." Can you please help me how to do this?
@miryam463
@miryam463 4 года назад
Regarding printing: I got a table that fits in a single page when printed. The table has titles in the top row. When choosing a value from the top left filter in the top row of the table, the dependent array below the filter gets filtered accordingly, and so the whole table now has less rows than when it's unfiltered. What's the VBA code to automatically select the first value from the filter, and automatically print on paper the filtered table; then select the second value from the filter, and automatically print on paper the filtered table; and so forth until you have finished printing on paper all available values from the filter? Thanks in advance.
@maryjeantjrnelund9315
@maryjeantjrnelund9315 2 года назад
Your video saved me so much time. Thank you very much. Can you make the list skip some sheets that I don’t want in the listbox? And if so how?
@gerardvaneggermond9967
@gerardvaneggermond9967 4 года назад
hello, maybe you can help me, i have made a worksheet with a dropdown list there are 2 the second has to be dependent on the first, then there is the hard to believe that it has to be looked up in three other worksheets (S1, S2, S3) they are all the same in content, what do I want to do now, in cell E2 I can enter numbers from 1 to 3, if I do I want to look up the names, in the second list I want to look up the names the ones below, can you help me?
@saranganathan7908
@saranganathan7908 4 года назад
ask pemission before print each page in ms excel pls help me
@linasmarocka6619
@linasmarocka6619 3 года назад
Very helpful video. How can I add another button which would print (or select) all sheets? Just as a shortcut if I would print them all more often. Without loosing preview function.
@benedictestrada2774
@benedictestrada2774 5 лет назад
Private Sub Workbook_Open() Sheets(2).Select Sheets(1).Select End Sub works for me to refresh active listbox. thanks a lot and more power!!
@aayushk.c.2081
@aayushk.c.2081 2 года назад
Hi Leila, I have been following your channel for a while now and I would really appreciate if you could help me with printing in landscape as well as portrait within the same worksheet. I could print one-one page but it would take a lot of time especially if I have to print the same document again and again. So how will you approach this problem? I would love to hear your thoughts. Thanks.
@prasannaprasanna9955
@prasannaprasanna9955 4 года назад
Many tutorials are there but your guidance and presentation clears all doubts. Please give a detail of Redim Preserve meyhod
@hockdrew
@hockdrew 4 года назад
This has been very helpful. I'm stumped on how to do this same thing, but automate print/saving to PDF. Specially using ExportAsFixedFormat. Any suggestions?
@MsNelichuz
@MsNelichuz 2 года назад
Great tutorial! I did it and it worked while testing. However now it does not work properly for a "random"selection. Keeps saying "error 1004". Any ideas of what I'm doing wrong?
@shoestringlean7163
@shoestringlean7163 Год назад
This is great! How would you filter that list in the list box based on certain cells on each sheet having data? (automatic instead of manual selection?)
@wayneedmondson1065
@wayneedmondson1065 5 лет назад
Hi Leila.. thanks.. great video and useful tip and tool to add to any workbook for easier previewing and printing. I can think of many parallel uses, such as a choice to save selected sheets to PDF or save selected sheets as a separate workbook, etc. Always a pleasure to view your videos and practice learning your techniques and implementing your ideas in my own work product. Thumbs up!
@LeilaGharani
@LeilaGharani 5 лет назад
The PDF idea is also great! Thank you Wayne - also for your comment on the previous video which inspired me to make this one :)
@wayneedmondson1065
@wayneedmondson1065 5 лет назад
Thanks Leila.. glad to be part of the process. I built your code into a workbook with some hidden sheets and realized the need to trap for that and not load them to the list box, otherwise the PrintPreview or PrintOut routine fails, if a hidden sheet is selected for processing from the list. I added this code.. problem solved. For Each ws In Worksheets If ws.Visible = xlSheetVisible Then Me.ListBoxSh.AddItem ws.Name End If Next ws Before following your channel and taking your VBA course, I wouldn't have known where to begin, let alone being able to solve the problem for myself. Thanks for all your help and inspiration. Looking forward to your next video. Thumbs up! PS - Also added this code to trap for attempting to print with nothing selected in list box.. the fun never ends with VBA.. haha!! If c = 0 Then MsgBox "Nothing was selected.. try again!" Else Sheets(SheetArray()).PrintPreview End If
@towfeek1338
@towfeek1338 5 лет назад
Your efforts concerning several MS Excel videos are always appreciated.... well done...
@LeilaGharani
@LeilaGharani 5 лет назад
Thank you Towfeek! Also thank you for your support of my videos.
@sukralama1368
@sukralama1368 Год назад
Thanks for very useful videos...
@agyemangrichmond3847
@agyemangrichmond3847 3 года назад
Great video, can you do a video of how to print multiple data in a drop down list. Thanks a lot.
@MstJuan
@MstJuan 4 года назад
Hi Leila, thanks for sharing the knowledge and helping others. I used this type of code to make a child activity record where teachers can enter the child activity per session. All is inputted from a central sheet which I would like to keep visible but not listed with in the list box is that possible please.
@sridharkrishnappanavanerth3388
@sridharkrishnappanavanerth3388 4 года назад
Icons is not available in my insert tab, how do i activate icons. excel 2016 ver
@jovanjevric5750
@jovanjevric5750 4 года назад
What if I want to only print a certain range of cells on each sheet? How would i incorporate that into my code?
@prashanttiwari4428
@prashanttiwari4428 4 года назад
Thank you very much. What if i want to show only few sheets in the list box and not all ?
@sat1460
@sat1460 5 лет назад
Thank you very much for this trick and one more thing mam how to view vba code if Excel is locked by unviewable project shared workbook ...how to crack it ...looking for your reply
@sarahklein5175
@sarahklein5175 2 года назад
Wonderful tutorial!! I am still very new to this, is there a way to have your list box to show only certain tabs? Looking to not show my first two tabs but to show the rest. Thank you!
@nevermind4780
@nevermind4780 5 лет назад
I really love your way of explanation and examples😍
@kehindeateniola3801
@kehindeateniola3801 5 лет назад
Please, how do you extract down into consecutive rows using a list box multiple selection with checkboxes and vice versa.
@lucasjohnson5871
@lucasjohnson5871 4 года назад
I have a unique issue, i have been racking my brain trying to figure out. Do you take requests?
@mranca511
@mranca511 4 года назад
help me, why vba expected end with
@officeruc277
@officeruc277 4 года назад
Is it possible to email the selected sheets as attachment instead of printing them?
@md.tanwir9108
@md.tanwir9108 3 года назад
This Tutorial was Impressive and I am in Learning stage. I wonder Is it possible to print in single page, different sections of same sheet. for example: In sheet1 I want to print cells A1: B5 and C10:F20 . Just in my mind. Thank you.
@piski12
@piski12 2 года назад
did you find a way how to do this? maybe some help @leila gharani
@bludreem121
@bludreem121 5 лет назад
Hey there! I've been learning a lot from your videos! I'm putting together a whole template for a project at work. This ALLLMMOOOST does what I need it to, and I'm not sure how to get it there. I'm hoping to select all visible sheets (this is variable), except one called "Instructions," and print them out as one print job, so that the pages are numbered properly. As my code stands right now, it prints each sheet in the workbook as a separate print job, and numbers them based on how many pages are on the given sheet, rather than the whole. Private Sub PrintAll_Click() Dim Wks As Worksheet For Each Wks In ActiveWorkbook.Worksheets If Wks.Visible = xlSheetVisible Then If LCase(Wks.Name) "Instructions" Then Wks.PrintOut End If End If Next Wks End Sub Thank you for any help you can provide!
@Resiliency2014
@Resiliency2014 5 лет назад
Leila, I was referred to your channel.. I need help to create a hidden calculator in excel to roll out data once data in input..
@excelisfun
@excelisfun 5 лет назад
Great video, Teammate : )
@LeilaGharani
@LeilaGharani 5 лет назад
Thank you Teammate Mike :)
@TheHellis
@TheHellis 5 лет назад
I usually use dictionary instead of arrays due to how... Ehmm.. poorly VBA handles arrays. Too much problems with resizing and not being associative. Dictionary's can expand and be associative and is, to me, easier to use.
@jauri8994
@jauri8994 5 лет назад
Hey Leila, thank you for your great videos!! Could you make a video on how to extract data from text?? I will explain myself a little more: if I get the text "Dear Jauri, could you fill in the forms AB11001, AB11002 and 11003", I would like to copy the whole text and paste it in one excel cell. As I result I would like a list: "11001" in cell A1, "11002" in cell A2 and "11003" in cell A3. Note that the form number starts with either "AB11" or "11". I Would appreciate it! thank you ^^
@billhladik406
@billhladik406 5 лет назад
Crude but... paste text into A1, Make A3 this: =SUBSTITUTE(SUBSTITUTE(UPPER(A1)," AB11"," ~11")," 11"," ~11"), then make A4 this: =MID($A3,FIND("~",$A3)+1,5), then paste this into B4:B10: =IF(A4"",IFERROR(MID($A3,FIND("~",$A3,FIND(A4,$A3))+1,5),""),"")
@birbhabirbha4758
@birbhabirbha4758 2 года назад
Thanks you Mem for easy & ooosam tutorial 👍👍
@muhammadabdulrasool206
@muhammadabdulrasool206 5 лет назад
Thanks a lot for your amazing way in explanation these topics. I have a list with some items that are dynamically connected to the sheet it’s located on and want to print that sheet for each item in the list, is it possible to do that using macro?
@devexcel2023
@devexcel2023 3 года назад
thank you so much Leila
@henrygross6608
@henrygross6608 2 года назад
Thank you so much for your help on this topic and the many others you have shared. I will definitely be using this code in an upcoming project. One thing that I would add is a message box to alert the user if they have not chosen a sheet and then hit the Preview button. When one runs the macro an error message pops up. I added the following and it did the trick. Thanks If c > 0 Then Sheets(SheetArray()).PrintPreview 'If you'd like to print out ' Sheets(SheetArray()).PrintOut Else MsgBox "No Sheets have been selected" End If
@raminderkaursekhon7302
@raminderkaursekhon7302 4 года назад
mam, how can we print the selected Rows in listbox directly?
@ZKProgrammer
@ZKProgrammer Год назад
Nice
@excelaficionado
@excelaficionado 5 лет назад
Very Well Explained, VBA is a life saver for people like us, those who spend their life in spreadsheets....
@LeilaGharani
@LeilaGharani 5 лет назад
Very true :)
@poshanbasnet6347
@poshanbasnet6347 4 года назад
List Box texts are getting smaller every time when I open the workbook.
@behnamebrahimi1625
@behnamebrahimi1625 5 лет назад
👍👍👌👌 Well-done
@JJDSidiIfni
@JJDSidiIfni 5 лет назад
Thanks a lot Leila for this great tuto
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome Aarab. Thank you for your support.
@krn14242
@krn14242 5 лет назад
Thanks Leila. Great video as always, you have a prefect teaching voice and explain things extremely well. Well done.
@isaacboateng3645
@isaacboateng3645 4 года назад
I always enjoy your tutorials, straight forward and easy to follow. You are the one experts want to learn from. Thumps up!
@razoukma957
@razoukma957 5 лет назад
yes! i like this video, thank you sweet Leila and we always waiting for your next!
@banarasaziz4615
@banarasaziz4615 5 лет назад
Not Only This but all of your tutorials are awesome ! Your way of Explaining is great and You are Best Online Instrutor for me ever. Wish You Good Luck !
@LeilaGharani
@LeilaGharani 5 лет назад
Thank you Banaras Ali Aziz! I'm very happy you find the tutorials easy to follow.
@shironmania
@shironmania 5 лет назад
I need to know the vba basics to understand this tutor, this does look pretty useful too
@stevemullins3338
@stevemullins3338 5 лет назад
Leila, I think I'm in love with you. My goodness you make Excel and VBA for that matter, so damn beautiful. In all seriousness, appreciate the sharing of knowledge, have learnt a ton. ✌🏾
@LeilaGharani
@LeilaGharani 5 лет назад
I'm glad to hear that the videos are helpful Steve.
@iqbaliba
@iqbaliba 5 лет назад
Out of my network capabilities 😥
@helmyputeraedeljaya3964
@helmyputeraedeljaya3964 3 года назад
Excellent .... Thanks Leila :)
@calvinc851
@calvinc851 4 года назад
Great programming! Thank-you.
@abdurrazzak8440
@abdurrazzak8440 3 года назад
Thanks sister
@Iron-and-strings
@Iron-and-strings 4 года назад
thank you, it worked great!
@prasanths7627
@prasanths7627 2 года назад
thank you....
@esbi1124
@esbi1124 4 года назад
Many thanks
@akanlunadewuyi2588
@akanlunadewuyi2588 5 лет назад
Wow! what a great teacher. You are wonderful. I have just started a course which requires me all these things that you're teaching and it has been so resourceful to me. Thank you
@LeilaGharani
@LeilaGharani 5 лет назад
You're very welcome. Good luck with the course Akanlu.
@hosseinhosseinpoor4845
@hosseinhosseinpoor4845 3 года назад
thanks...
@aboelmagd100
@aboelmagd100 5 лет назад
Thank you very much Leila!
@naslucky
@naslucky 3 года назад
Superb
@EricaDyson
@EricaDyson 5 лет назад
Oh my goodness, that's something I needed to today. I had a 'print all' to PDF button, now I can enable the user to select sheets! Thanks so much!
@LeilaGharani
@LeilaGharani 5 лет назад
Sounds great :)
@nerenlakhraj5252
@nerenlakhraj5252 5 лет назад
Awesome tutorial Leila ... lesson learnt ... thank you :-)
Далее
Radxa X4: An N100 Pi
20:48
Просмотров 56 тыс.
Are These Pivot Table Mistakes Costing You?
9:45
Просмотров 49 тыс.
Excel ActiveX Combo Box to Select Worksheets with VBA
9:56