Runtime error 1004 - Unable to set the center footer property of the page setup class

UNTITLED

Board Regular
Joined
Jan 17, 2009
Messages
66
How can I fix 'Runtime error 1004 - Unable to set the center footer property of the page setup class' I would like a reference to a cell in the footer.
Code:
Sub UpdateFooter()
   ActiveSheet.PageSetup.CenterFooter = Range("A1").Value
End Sub
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Do you have a printer installed on the machine where you are running the code?
 
Upvote 0
I have tried running the code on a computer with a printer installed, but not at the moment
 
Upvote 0
It definitely won't work without one installed.
 
Upvote 0
I've never seen that error other than with no printer. Is the printer installed for the user you were running the code as? (were you running it on a server?)
 
Upvote 0
Ok its working now but it displays the cell reference opposed to the contents of the cell
 
Upvote 0
It should show the value of the cell. (you cannot establish a dynamic link between the two)
 
Upvote 0

Forum statistics

Threads
1,215,636
Messages
6,125,952
Members
449,276
Latest member
surendra75

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