Get access to the full course on Excel VBA here 👉 www.xelplus.com/course/excel-vba-excel-macros/
@chriscron52535 жыл бұрын
Have used other KZbin channels to help with Excel challenges. This channel will now be my first stop. Leila prepares her material very well and her presentation is simple and straight forward. A big thumbs up to Leila Gharani. Good work!!!!
@LeilaGharani5 жыл бұрын
Thanks for the thumbs up Chris. It's great to have you here.
@almasmeyer21886 жыл бұрын
Leila, i wanted to say big thanks for your work and dedication. I bought dashboard excel package. Every single video is made with professionalism. My regards.
@LeilaGharani6 жыл бұрын
You're very welcome Saigo and thank you for your support of my courses! I hope you find a lot of value in that course.
@eviltrooper3 жыл бұрын
Hello Leila. Is there anyway to format the font size in the same code?
@excelisfun6 жыл бұрын
Great video as always!
@mohammedMbwana6 жыл бұрын
A compliment from a Legend
@LeilaGharani6 жыл бұрын
Thank you very much Mike :)
@ralphmarple-hl9tj2 жыл бұрын
Very thorough and comprehensive presentation. Thank you.
@LeilaGharani2 жыл бұрын
Glad you enjoyed it!
@1gopalakrishnarao6 жыл бұрын
Awesome. Once again sincere thanks to my beloved & beautiful Excellent Excel Teacher, who provokes us to love passionately Excel. Really You are a Great person!!!!!!!!!!
@LeilaGharani6 жыл бұрын
Thank you Gopala for the very kind words. Thank you for your support.
@dasrotrad6 жыл бұрын
Excellent! A big thank you Leila.
@LeilaGharani6 жыл бұрын
You're very welcome robert. Thank you for your support.
@fairlymoon4484 жыл бұрын
This is so cool!! And definitely what I need. Thank you for saving my bacon every time!
@elvis357110 ай бұрын
Excellent explanation. Thank you
@arunark2746 жыл бұрын
Veryyyyy cool!!!! You explained vba in a very simple way. Loved it 💐💐💐💕💕💕
@costaspetrides28485 жыл бұрын
Great video which covers the usual problems we might come across when creating it!!
@LeilaGharani5 жыл бұрын
I'm happy to hear the tutorial is useful Costas.
@arulthangavelu36396 жыл бұрын
New Venture & Learning opportunity - Exploring the possibilities of linking cell value - A new Concept. Thanks madam
@barttitulaerexcelbart94006 жыл бұрын
The legend is right: Great video as always. Your passion for VBA makes me pick up your VBA course on Udemy soon.
@LeilaGharani6 жыл бұрын
Thanks Bart.Yes - VBA can be fun too :)
@mahdisamei3331 Жыл бұрын
سلطان دمت گرم و سرت خوش باد
@serch73526 жыл бұрын
Excel..ent as always, thanks Leila big thumbs up.
@mazin916 жыл бұрын
Big Thanks and appreciate your hard efforts for excel learners
@Rubbernecker6 жыл бұрын
So cool. You make the best videos!
@LeilaGharani6 жыл бұрын
Thank you Scott. Glad you like the tutorials.
@vida17196 жыл бұрын
Very well explained as always
@LeilaGharani6 жыл бұрын
Thank you Vida :)
@DuongAQ6 жыл бұрын
VBA + header = Great. Thanks!
@pegwinn Жыл бұрын
Thank you for this. It is three quarters of the way to what I am trying to do. Where you are applying the header to all tabs I want to limit it to one specific tab. Your macro is great. I’m going to try it on a button instead of the before print event to see if it works how I need it. Thank you again.
@harishpaldhir59156 жыл бұрын
As usual very very cool way to explain difficult things in simple and sound way 😇😇😇😇
@lyladrayson56805 жыл бұрын
Thank-you so much, works great in Excel 2016 and well explained! So much better method that other VBA code methods that I had been trying to use (without success).
@LeilaGharani5 жыл бұрын
You're very welcome!
@ronquartarone90826 жыл бұрын
Is there any way to print the data on multiple rows in the header?
@M_Heihger Жыл бұрын
Thanks so much dear you've solved my problem
@LeilaGharani Жыл бұрын
Most welcome 😊
@sandravukovic29016 жыл бұрын
Awesome! So easy, yet it never occured to me :)) It may sound geeky, but excel is or can be so much more than a bunch of (hopefully) structured data. Thanks Leila!
@LeilaGharani6 жыл бұрын
You're welcome Sandra. Agree with you on that :)
@haleemasadiya85234 жыл бұрын
Clicking on workbook from the dropdown ( at 3:29) is not working. A dialogue box appears saying " Variable uses and Automation type not supported in Visual Basic" . Please Help
@nusratfateali23756 жыл бұрын
Hi leila....i like your videos n you tooo very much...
@abdelrahmanelalfy10214 ай бұрын
How can I change the code to be a dynamic cell reference for each printed page? Thanks
@wfeismann5 жыл бұрын
Love your videos and am learning tons. Would you be able to share the syntax for doing this on excel chart footers? I have tried and tried to no avail. Thanks in advance.
@haqobatil98325 жыл бұрын
Hi Leila if i want to subtotal or total of column in footer is it any solution of it
@chanchalagarwal91812 жыл бұрын
Amazing Tip! If you could throw some light on how we can add some formatting (like bold and give different color) in the same VBA code, it will be pretty much helpful.
@09shirish6 жыл бұрын
Thanks ! Interesting topic !
@pvm12214 жыл бұрын
I see Leila like it!
@kahallattin73553 жыл бұрын
How can I add an additional line referencing another cell under the first referenced cell? I got the way you show in the video to work, but need one more name to go under first name of a header. Thanks for the help!
6 жыл бұрын
Wow! That's great!!
@ExcelBonanza6 жыл бұрын
Great trick to utilize the before print event!
@SahilAli-bx6gr9 ай бұрын
can I apply this on a filtered column where First visible cell will be shown in header.
@arqammanzoor30575 жыл бұрын
Any video on how to change header and footer from the cell/list drop-down on the sheet? E,g I have 4 different header design and based on a selection from one cell, I want to change the header accordingly. Any help in this.
@chrisboehmer6465 Жыл бұрын
Is there a way to do this with a button instead of before printing? I would like to run this across multiple workbooks
@grantwilson32192 жыл бұрын
Is there a way we could use your method to put several cell values into the header? For instance, I want Borrower Name, Project Address, and Draw Number to populate in the header using this method. Thank you! Love your videos.
@dressform14 жыл бұрын
I have a question for you. I have 8 worksheets in a workbook. I want to pull the data from worksheet #2 merged cells 3AX:3BQ and 5BE:5BQ and have that information shown and printed in the header of the following 5 worksheets (worksheet nos. 3 thru 7). How would I reference that?
@maleekabiolaottun57463 жыл бұрын
Hi Leila, I have been watching your exce videos and it has been very helpful . i was able to link a cell to my center footer using your example . but the result is not adopting the font style in the cell. is there something that i can do?
@wayneedmondson10656 жыл бұрын
Hi Leila.. love this one. I've always put the procedure in a button that adjusts the header and then prints. Of course, if I use the default print CTRL+P or from the QAT button, then I don't get my functionality. This solves the problem. Your solutions are always creative and valuable. Thanks for this one which I will begin using immediately. Thumbs up!
@LeilaGharani6 жыл бұрын
That‘s great! I‘m glad this can be of use! Thank you for your comment and support.
@hosseinhosseinpoor48454 жыл бұрын
thanks.
@arqammanzoor30574 жыл бұрын
Can we do same but with Picture image in the header
@SamuelFloden-dy3gw8 ай бұрын
Hello. Thanks for a clear video. I have a small problem with my excel sheet. I want to get a total of 4 fields, the same field on each tab, in 4 different rows in the header. Can it be done easily? I have followed your video and recorded a macro. There I found the following, ActiveSheet.PageSetup .LeftHeader = "=L36Igen" & Chr(10) & "=L37Igen" & Chr(10) & "=L38Igen" & Chr(10) & "=L39Igen" Tried to edit, but can't get it to work. Do you have any advice?
@pht1010592 жыл бұрын
nice video. how to format : bolt Italic ?
@philipfleming11164 жыл бұрын
How do I access the classic "Print Preview Full Screen" method using VBA? I would like to do this programmatically rather manually on the Quick Access Toolbar.
@ismailismaili00716 жыл бұрын
thank you so much for this
@Roniou26 ай бұрын
Great video. Why not use the change sheet event and monitor only the cell that the header data is typed in. Then every time you change the details in the cell the report header will be updated automatically. It will be visible in print preview immediately.
@robertakwasiadjei82236 жыл бұрын
Great Leila
@mirrrvelll51643 жыл бұрын
Is there a way to the similar without VBA?
@walek20016 жыл бұрын
great!
@Arminpage4 жыл бұрын
Ahsant :)
@alohafromwaimea4 жыл бұрын
Great tutorial. Is there a way to use the first cell at each page break as a reference to use as the header so that each page is a unique value?
@shoshanadjaker37223 жыл бұрын
i would love to know too please; i need the header to reflect the first cell at each of my page break too... and i could use this in more than one file .. it would be sooo useful!! many thanks in advance!!!
@compieasy8 ай бұрын
Dear @LeilaGharani, i think i need some help. i have image/picture in cell, and i want to use it as a header. but i don't know the code, please help me, Thx
@pizzabrian9186 ай бұрын
Why did you record the macro values if you weren't going to use them in the code?
@Ar-kn2ic6 жыл бұрын
Hi Leila, First of all, great job! Your videos are great and very explanatory. I was wondering if you could upload a video explaining how to create and run web queries on excel. Meaning, by refreshing the query it will automatically import the data from a specific web. This would really help! Thanks!
@LeilaGharani6 жыл бұрын
You might find this video helpful: kzbin.info/www/bejne/n6CsonRpnZmjopI
@Chrispy02 Жыл бұрын
Hi there how would one code say for the Right Header to have a referenced cell from the first page and then another referenced cell from the first page but on different lines within the same header- e.g. Sh.PageSetup.RightHeader="Date:" & Worksheets("CoverPage").Range("B19").Value Sh.PageSetup.RightHeader="Revision:" & Worksheets("CoverPage").Range("B23").Value But if these can be stringed together and put on separate lines- as the code obviously takes the last Line overriding the Date line.
@mohammadahmed79324 жыл бұрын
Sir how we add header and footer in multiple files to gather .thanks
@arqammanzoor30574 жыл бұрын
Can anyone help me ? I have 4 diff companies letterheads to be printed via list, which company I select from the list, it's letterhead should appear
@mikecall145 жыл бұрын
That was much easier then I thought it would be thank you so much for this! How much harder would it be if I wanted to bold the footer as well?
@LeilaGharani5 жыл бұрын
Excellent! You can check this out: docs.microsoft.com/en-us/office/vba/excel/concepts/workbooks-and-worksheets/formatting-and-vba-codes-for-headers-and-footers
@pvm12214 жыл бұрын
Вижу Лейлу ставлю лайк !
@deepakbhanushali12 жыл бұрын
Leila I want page number in specific cell example 1/10 can you tell how
@ammarami6 жыл бұрын
there is no relative cell reference button in the developer tab , in my mac , Please help
@arpithaj31974 жыл бұрын
Hi, can anyone help me with a vba code to convert entire workbook to pdf with header and footer specific to 4 sheets out of 10 sheets?
@chrism75265 жыл бұрын
Ok everything worked but i need to change font size on header, how can you add to VBA for that?
@michaeldiamond27266 жыл бұрын
Hi Leila Are you holding out on us? Do you have more videos in your stockpile that you could release? The reason I ask is that the date printed was either "2/17/2018"? I'm sure their are a lot of us who can't wait for your next videos. I know I'm always looking for to Mike's videos too. Great video as usual, you rock!
@LeilaGharani6 жыл бұрын
A little bit :) I have a stack for busy weeks. Thank you for your support. I look forward to Mike's too.
@michaeldiamond27266 жыл бұрын
Ah, so that's the way it works. Hopefully, Mike works the same way.
@MNAKSA5 жыл бұрын
Good Video. But how to show current page no or running page no in a cell in a sheet. Or what is the code to show running page no in excel cell. Also how to show Total Pages in a cell in a sheet.
@mohammadabuhanif17783 жыл бұрын
How can I link call value in another sheet?
@golem28665 жыл бұрын
I'm limited on macro experience. What if you only wanted it on one sheet?? This places it on all.
@fogknuckles30496 жыл бұрын
Do you do one on one lessons
@LeilaGharani6 жыл бұрын
No
@devendrakhatri38515 жыл бұрын
Hi Wanted to enter ("A2") .Value . which is changing every time when I print. it's not working. If I change it afterwards value in cell A2 then it's not changing. It can be used only once same value has been printed if I change the value should value in A2 Cell in print change automatically. Please guide on it
@derekchung99823 жыл бұрын
Cool but how to link the header to a cell meanwhile set the header font size at the same time ?
@d.v.v5622 жыл бұрын
Can you link a cell to a header… I need to put page numbers in a cell but dont know how
@MIGMAGAG3 жыл бұрын
Thank. Printing becomes very slow !!
@alejandroflamerich38785 жыл бұрын
HI Leila. Very Nice you video. It help me a lot. Nevertheless I got an error that I could figure it out. For this line Sh.PageSetup.CenterFooter = "XXXXXXXXX" work fine but when I use this Sh.PageSetup.CenterFooter = Sh.Range("B41").Value I got error: Run-time error 1004. Unable to set the CenterFooter property of the PageSetup class.
@alejandroflamerich38785 жыл бұрын
My email alejandroflamerich@gmail.com just i case ;)
@tesla40024 жыл бұрын
why are you using the Me.Worksheets >???
@H0kies956 жыл бұрын
Why not use a change event for A2. Then you would not need the different print preview. You would just need to edit A2 after writing the macro. And it will show in the normal preview.
@LeilaGharani6 жыл бұрын
Yes you can. That would run it every time the cell is changed but that would work too. You don't need the other print view at all though. I just used it for demonstration to show that the macro runs. The macro still runs with the current print view the moment you make a printout or PDF.
@MrSupernova1112 ай бұрын
Seems complicated and clunky. I wonder if there is a newer and better way to do this now.
@MNAKSA5 жыл бұрын
How to link headers and footers on a sheet cells. How to show page no or nos in cells from header. Many people have many videos like this but there is no one has a video how to link headers and footers to cells in the sheets. There is video to link headers field to a cell from sheet but not vice versa. There is no option to repeat footers in the sheets from rows in sheets on footer. You cannot insert tables in the headers and footers.So think for this.
@OurMortgageGuy5 жыл бұрын
Good morning Leila, TY for all the tutorials. I am having issues getting my macros to run. I am a Mortgage Banker, I created a spreadsheet to help my realtor partners quickly determine if a potential client is a viable buyer or will need help. It asks 10 questions and based on the response determines what program and options the client might qualify for. The Macro I created should do a few things: a. Place the data in cell B1 (the Client's Name) in the Left Header of the PDF report. b. Save the updated spreadsheet as the client’s name is B1. c. Email the PDF version to the Client from the email address located in cell H1. d. BCC me on all emails.Here is my Macro: Sub sendReminderMail() ChDir "C:\Users bhiro.PRIME\Desktop\Referrals"ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _"C:\Users bhiro.PRIME\Desktop\Referrals\test-save.pdf", OpenAfterPublish:=TrueDim OutLookApp As ObjectDim OutLookMailItem As ObjectDim myAttachments As ObjectSet OutLookApp =CreateObject("Outlook.application")Set OutLookMailItem =OutLookApp.CreateItem(0)Set myAttachments =OutLookMailItem.Attachments With OutLookMailItem .To = rbhiro@primelending.com .Subject = "Data" .Body = "The Excel data is attached in PDF format." myAttachments.Add "C:\Users bhiro.PRIME\Desktop\Referrals\test-save.pdf" '.send .Display End With Set OutLookMailItem = Nothing Set OutLookApp = Nothing End SubGood morning Leila, TY for all the tutorials. I am having issues getting my macros to run. I am a Mortgage Banker, I created a spread sheet to help my realtor partners quickly determine if a potential client is a viable buyer or will need help. It asks 10 questions and based on the response determines what program and options the client might qualify for. The Macro I created should do a few things: a. Place the data in cell B1 (the Client's Name) in the Left Header of the PDF report. b. Save the updated spreadsheet as the clients name is B1. c. Email the PDF version to the Client from the email address located in cell H1. d. BCC me on all emails. Good morning Leila, TY for all the tutorials. I am having issues getting my macros to run. I am a Mortgage Banker, I created a spread sheet to help my realtor partners quickly determine if a potential client is a viable buyer or will need help. It asks 10 questions and based on the response determines what program and options the client might qualify for. The Macro I created should do a few things: a. Place the data in cell B1 (the Client's Name) in the Left Header of the PDF report. b. Save the updated spreadsheet as the clients name is B1. c. Email the PDF version to the Client from the email address located in cell H1. d. BCC me on all emails. In workbook, Before Print Private Sub Workbook_BeforePrint(Cancel As Boolean)Dim Sh As WorksheetsFor Each Sh In Me.WorksheetsSh.PageSetup.LeftHeader = Sh.Range("B1").Value Next Sh End Sub Thank you for your help in advance. H. Roy Bhiro Rbhiro@primelending.com
@LeilaGharani5 жыл бұрын
I'm glad you enjoy the tutorials. Regarding your query, best is to post your specific question on Microsoft Excel's Tech community: techcommunity.microsoft.com/t5/Excel/ct-p/Excel_Cat - you can post a link to your question here too and if I get a chance I can take a look, otherwise you will get answers from others....
@chanchalagarwal26972 жыл бұрын
Amazing Tip! If you could throw some light on how we can add some formatting (like bold and give different color) in the same VBA code, it will be pretty much helpful.
@philipfleming11164 жыл бұрын
How do I access the classic "Print Preview Full Screen" method using VBA? I would like to do this programmatically rather than manually on the Quick Access Toolbar.