JohnZ1156
Board Regular
- Joined
- Apr 10, 2021
- Messages
- 180
- Office Version
- 2021
- Platform
- Windows
I have a 2 line Right header set up.
Suddenly it's not working, but I don't know what changed.
I'm now getting this error message.
Run-time error '1004':
Unable to set the RightHeader property of the PageSetup class.
Here's the line in my VBA macro that it doesn't like.
Application.ActiveSheet.PageSetup.RightHeader = "&""Arial""&20" & "Page &P of &N " & _
Chr$(10) & Format(ActiveSheet.Range("J1").Value, "$#,##0.00 ")
Suddenly it's not working, but I don't know what changed.
I'm now getting this error message.
Run-time error '1004':
Unable to set the RightHeader property of the PageSetup class.
Here's the line in my VBA macro that it doesn't like.
Application.ActiveSheet.PageSetup.RightHeader = "&""Arial""&20" & "Page &P of &N " & _
Chr$(10) & Format(ActiveSheet.Range("J1").Value, "$#,##0.00 ")