How to Insert Cell Values into Footers and Headers in Excel

  Рет қаралды 65,074

Leila Gharani

Leila Gharani

Күн бұрын

Пікірлер: 109
@LeilaGharani
@LeilaGharani Жыл бұрын
Get access to the full course on Excel VBA here 👉 www.xelplus.com/course/excel-vba-excel-macros/
@chriscron5253
@chriscron5253 5 жыл бұрын
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!!!!
@LeilaGharani
@LeilaGharani 5 жыл бұрын
Thanks for the thumbs up Chris. It's great to have you here.
@almasmeyer2188
@almasmeyer2188 6 жыл бұрын
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.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
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.
@eviltrooper
@eviltrooper 3 жыл бұрын
Hello Leila. Is there anyway to format the font size in the same code?
@excelisfun
@excelisfun 6 жыл бұрын
Great video as always!
@mohammedMbwana
@mohammedMbwana 6 жыл бұрын
A compliment from a Legend
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you very much Mike :)
@ralphmarple-hl9tj
@ralphmarple-hl9tj 2 жыл бұрын
Very thorough and comprehensive presentation. Thank you.
@LeilaGharani
@LeilaGharani 2 жыл бұрын
Glad you enjoyed it!
@1gopalakrishnarao
@1gopalakrishnarao 6 жыл бұрын
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!!!!!!!!!!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you Gopala for the very kind words. Thank you for your support.
@dasrotrad
@dasrotrad 6 жыл бұрын
Excellent! A big thank you Leila.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're very welcome robert. Thank you for your support.
@fairlymoon448
@fairlymoon448 4 жыл бұрын
This is so cool!! And definitely what I need. Thank you for saving my bacon every time!
@elvis3571
@elvis3571 10 ай бұрын
Excellent explanation. Thank you
@arunark274
@arunark274 6 жыл бұрын
Veryyyyy cool!!!! You explained vba in a very simple way. Loved it 💐💐💐💕💕💕
@costaspetrides2848
@costaspetrides2848 5 жыл бұрын
Great video which covers the usual problems we might come across when creating it!!
@LeilaGharani
@LeilaGharani 5 жыл бұрын
I'm happy to hear the tutorial is useful Costas.
@arulthangavelu3639
@arulthangavelu3639 6 жыл бұрын
New Venture & Learning opportunity - Exploring the possibilities of linking cell value - A new Concept. Thanks madam
@barttitulaerexcelbart9400
@barttitulaerexcelbart9400 6 жыл бұрын
The legend is right: Great video as always. Your passion for VBA makes me pick up your VBA course on Udemy soon.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thanks Bart.Yes - VBA can be fun too :)
@mahdisamei3331
@mahdisamei3331 Жыл бұрын
سلطان دمت گرم و سرت خوش باد
@serch7352
@serch7352 6 жыл бұрын
Excel..ent as always, thanks Leila big thumbs up.
@mazin91
@mazin91 6 жыл бұрын
Big Thanks and appreciate your hard efforts for excel learners
@Rubbernecker
@Rubbernecker 6 жыл бұрын
So cool. You make the best videos!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you Scott. Glad you like the tutorials.
@vida1719
@vida1719 6 жыл бұрын
Very well explained as always
@LeilaGharani
@LeilaGharani 6 жыл бұрын
Thank you Vida :)
@DuongAQ
@DuongAQ 6 жыл бұрын
VBA + header = Great. Thanks!
@pegwinn
@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.
@harishpaldhir5915
@harishpaldhir5915 6 жыл бұрын
As usual very very cool way to explain difficult things in simple and sound way 😇😇😇😇
@lyladrayson5680
@lyladrayson5680 5 жыл бұрын
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).
@LeilaGharani
@LeilaGharani 5 жыл бұрын
You're very welcome!
@ronquartarone9082
@ronquartarone9082 6 жыл бұрын
Is there any way to print the data on multiple rows in the header?
@M_Heihger
@M_Heihger Жыл бұрын
Thanks so much dear you've solved my problem
@LeilaGharani
@LeilaGharani Жыл бұрын
Most welcome 😊
@sandravukovic2901
@sandravukovic2901 6 жыл бұрын
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!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You're welcome Sandra. Agree with you on that :)
@haleemasadiya8523
@haleemasadiya8523 4 жыл бұрын
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
@nusratfateali2375
@nusratfateali2375 6 жыл бұрын
Hi leila....i like your videos n you tooo very much...
@abdelrahmanelalfy1021
@abdelrahmanelalfy1021 4 ай бұрын
How can I change the code to be a dynamic cell reference for each printed page? Thanks
@wfeismann
@wfeismann 5 жыл бұрын
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.
@haqobatil9832
@haqobatil9832 5 жыл бұрын
Hi Leila if i want to subtotal or total of column in footer is it any solution of it
@chanchalagarwal9181
@chanchalagarwal9181 2 жыл бұрын
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.
@09shirish
@09shirish 6 жыл бұрын
Thanks ! Interesting topic !
@pvm1221
@pvm1221 4 жыл бұрын
I see Leila like it!
@kahallattin7355
@kahallattin7355 3 жыл бұрын
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!!
@ExcelBonanza
@ExcelBonanza 6 жыл бұрын
Great trick to utilize the before print event!
@SahilAli-bx6gr
@SahilAli-bx6gr 9 ай бұрын
can I apply this on a filtered column where First visible cell will be shown in header.
@arqammanzoor3057
@arqammanzoor3057 5 жыл бұрын
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
@chrisboehmer6465 Жыл бұрын
Is there a way to do this with a button instead of before printing? I would like to run this across multiple workbooks
@grantwilson3219
@grantwilson3219 2 жыл бұрын
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.
@dressform1
@dressform1 4 жыл бұрын
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?
@maleekabiolaottun5746
@maleekabiolaottun5746 3 жыл бұрын
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?
@wayneedmondson1065
@wayneedmondson1065 6 жыл бұрын
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!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
That‘s great! I‘m glad this can be of use! Thank you for your comment and support.
@hosseinhosseinpoor4845
@hosseinhosseinpoor4845 4 жыл бұрын
thanks.
@arqammanzoor3057
@arqammanzoor3057 4 жыл бұрын
Can we do same but with Picture image in the header
@SamuelFloden-dy3gw
@SamuelFloden-dy3gw 8 ай бұрын
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?
@pht101059
@pht101059 2 жыл бұрын
nice video. how to format : bolt Italic ?
@philipfleming1116
@philipfleming1116 4 жыл бұрын
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.
@ismailismaili0071
@ismailismaili0071 6 жыл бұрын
thank you so much for this
@Roniou2
@Roniou2 6 ай бұрын
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.
@robertakwasiadjei8223
@robertakwasiadjei8223 6 жыл бұрын
Great Leila
@mirrrvelll5164
@mirrrvelll5164 3 жыл бұрын
Is there a way to the similar without VBA?
@walek2001
@walek2001 6 жыл бұрын
great!
@Arminpage
@Arminpage 4 жыл бұрын
Ahsant :)
@alohafromwaimea
@alohafromwaimea 4 жыл бұрын
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?
@shoshanadjaker3722
@shoshanadjaker3722 3 жыл бұрын
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!!!
@compieasy
@compieasy 8 ай бұрын
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
@pizzabrian918
@pizzabrian918 6 ай бұрын
Why did you record the macro values if you weren't going to use them in the code?
@Ar-kn2ic
@Ar-kn2ic 6 жыл бұрын
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!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
You might find this video helpful: kzbin.info/www/bejne/n6CsonRpnZmjopI
@Chrispy02
@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.
@mohammadahmed7932
@mohammadahmed7932 4 жыл бұрын
Sir how we add header and footer in multiple files to gather .thanks
@arqammanzoor3057
@arqammanzoor3057 4 жыл бұрын
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
@mikecall14
@mikecall14 5 жыл бұрын
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?
@LeilaGharani
@LeilaGharani 5 жыл бұрын
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
@pvm1221
@pvm1221 4 жыл бұрын
Вижу Лейлу ставлю лайк !
@deepakbhanushali1
@deepakbhanushali1 2 жыл бұрын
Leila I want page number in specific cell example 1/10 can you tell how
@ammarami
@ammarami 6 жыл бұрын
there is no relative cell reference button in the developer tab , in my mac , Please help
@arpithaj3197
@arpithaj3197 4 жыл бұрын
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?
@chrism7526
@chrism7526 5 жыл бұрын
Ok everything worked but i need to change font size on header, how can you add to VBA for that?
@michaeldiamond2726
@michaeldiamond2726 6 жыл бұрын
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!
@LeilaGharani
@LeilaGharani 6 жыл бұрын
A little bit :) I have a stack for busy weeks. Thank you for your support. I look forward to Mike's too.
@michaeldiamond2726
@michaeldiamond2726 6 жыл бұрын
Ah, so that's the way it works. Hopefully, Mike works the same way.
@MNAKSA
@MNAKSA 5 жыл бұрын
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.
@mohammadabuhanif1778
@mohammadabuhanif1778 3 жыл бұрын
How can I link call value in another sheet?
@golem2866
@golem2866 5 жыл бұрын
I'm limited on macro experience. What if you only wanted it on one sheet?? This places it on all.
@fogknuckles3049
@fogknuckles3049 6 жыл бұрын
Do you do one on one lessons
@LeilaGharani
@LeilaGharani 6 жыл бұрын
No
@devendrakhatri3851
@devendrakhatri3851 5 жыл бұрын
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
@derekchung9982
@derekchung9982 3 жыл бұрын
Cool but how to link the header to a cell meanwhile set the header font size at the same time ?
@d.v.v562
@d.v.v562 2 жыл бұрын
Can you link a cell to a header… I need to put page numbers in a cell but dont know how
@MIGMAGAG
@MIGMAGAG 3 жыл бұрын
Thank. Printing becomes very slow !!
@alejandroflamerich3878
@alejandroflamerich3878 5 жыл бұрын
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.
@alejandroflamerich3878
@alejandroflamerich3878 5 жыл бұрын
My email alejandroflamerich@gmail.com just i case ;)
@tesla4002
@tesla4002 4 жыл бұрын
why are you using the Me.Worksheets >???
@H0kies95
@H0kies95 6 жыл бұрын
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.
@LeilaGharani
@LeilaGharani 6 жыл бұрын
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.
@MrSupernova111
@MrSupernova111 2 ай бұрын
Seems complicated and clunky. I wonder if there is a newer and better way to do this now.
@MNAKSA
@MNAKSA 5 жыл бұрын
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.
@OurMortgageGuy
@OurMortgageGuy 5 жыл бұрын
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
@LeilaGharani
@LeilaGharani 5 жыл бұрын
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....
@chanchalagarwal2697
@chanchalagarwal2697 2 жыл бұрын
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.
@philipfleming1116
@philipfleming1116 4 жыл бұрын
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.
Link Header or Footer To Cell Values ... In All Excel Sheets
23:50
Officeinstructor
Рет қаралды 29 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Learn Excel MACROS in 10 Minutes Using Real World Examples
9:13
Kenji Explains
Рет қаралды 1,2 МЛН
Bring ChatGPT INSIDE Excel to Solve ANY Problem Lightning FAST
11:51
Leila Gharani
Рет қаралды 2,9 МЛН
Copilot in OneDrive -  Who thought THIS was possible?!
11:34
Leila Gharani
Рет қаралды 194 М.
How to Move Data Automatically Between Excel Files
11:37
Kenji Explains
Рет қаралды 265 М.
Excel VBA to Copy and Paste Rows if multiple Conditions is Met
12:42
Kent Lau Chee Yong
Рет қаралды 75 М.
Making Header / Footer dynamic with VBA
7:40
Learn Excel VBA
Рет қаралды 6 М.
You Won’t Believe What Excel’s Copilot Can Do! (new updates)
10:37
Путин ответил на ультиматум Трампа
7:25
Diplomatrutube
Рет қаралды 2 МЛН
Insert Blank Row for each change in a value using Power Query
10:18
Access Analytic
Рет қаралды 38 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН