Reference Cell Value in Footer

foolishpiano

New Member
Joined
Aug 19, 2016
Messages
28
Hi all!

In my footer I am trying to reference the value in cell F6. I have tried to use the information contained within this article; however, when I try to type in "&F6" to the left Footer, it changes to "&[File]6".

Has anyone else experienced this before, and if so, is there a step that I'm overlooking?

Thank you all so much for your help!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I believe the only way you can do this is with a VBA Macro. If you're okay with using VBA, then the question would be how you want to run it. Would you want it to run just before printing? Would you want to use a button?
 
Upvote 0
Hi Vogateer,

Thank you for your response! Using a VBA macro would be just fine, as I already have a macro button set up in the worksheet to print the form. You wouldn't happen to know the code, would you?
 
Upvote 0
Hi Vogateer,

Thank you for your response! Using a VBA macro would be just fine, as I already have a macro button set up in the worksheet to print the form. You wouldn't happen to know the code, would you?
Never mind! I figured it out. The code I'm using (just in case someone else stumbles upon this at some point) is:

VBA Code:
Dim cellValue As String
    Dim ws As Worksheet
    Dim wsStudent As Worksheet
    Dim rng As Range
    
    ' Specify the worksheet and cell from which you want to retrieve the value
        Set ws = ThisWorkbook.Sheets("HOME")
        Set rng = ws.Range("A23")
    
        Set wsStudent = ThisWorkbook.Sheets("Student Financial Aid Worksheet")
        
    ' Get the value from the specified cell
        cellValue = rng.Value
    
    ' Set the cell value in the footer
        With wsStudent.PageSetup
            .LeftFooter = cellValue
        End With
 
Upvote 0
Solution

Forum statistics

Threads
1,216,155
Messages
6,129,185
Members
449,492
Latest member
steveg127

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top