MedievalMan
Board Regular
- Joined
- Dec 14, 2004
- Messages
- 57
I have code that sets the footer:
<code>
Worksheets(wsname).PageSetup.RightFooter = "&""Arial""&" & fontsize & "&U Effective Radius: &U" & EffRad _
& Chr(10) & "&U Piston Diameter: &U" & Pistdiam _
& Chr(10) & "&U Actual Inertia: &U" & ActInert _
& Chr(10) & "&U Actual Wheel Load: &U" & ActWheel _
& Chr(10) & "&U Rolling Radius: &U" & RollRad _
& Chr(10) & Chr(10) & "Page &P of &N"
</code>
Here's my problem: this works when setting the Right Footer, but if I change this too the Left or Center Footer, I get the following error:
"Run-time Error '1004': Unable to set the LeftFooter property of PageSetup Class"
I know I can put line breaks in the center or left footer if I make the footers manually, so what am I missing?
Thanks again.
Matt Lawson
<code>
Worksheets(wsname).PageSetup.RightFooter = "&""Arial""&" & fontsize & "&U Effective Radius: &U" & EffRad _
& Chr(10) & "&U Piston Diameter: &U" & Pistdiam _
& Chr(10) & "&U Actual Inertia: &U" & ActInert _
& Chr(10) & "&U Actual Wheel Load: &U" & ActWheel _
& Chr(10) & "&U Rolling Radius: &U" & RollRad _
& Chr(10) & Chr(10) & "Page &P of &N"
</code>
Here's my problem: this works when setting the Right Footer, but if I change this too the Left or Center Footer, I get the following error:
"Run-time Error '1004': Unable to set the LeftFooter property of PageSetup Class"
I know I can put line breaks in the center or left footer if I make the footers manually, so what am I missing?
Thanks again.
Matt Lawson