Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel, how to obtain Header/Footer values

Status
Not open for further replies.

RCDD

Mechanical
Joined
Aug 11, 2005
Messages
2
Location
US
I need to retrieve the value of right footer of many excel files. The reason is to get the value and then,modify substring, and write back into it.

For example, I know how to assign right footer value.
ActiveSheet.PageSetup.RightFooter = "TEST123"

But, I can't figure out how to get the pre-entered right footer out?
 
Just do the reverse:

footval = ActiveSheet.PageSetup.RightFooter

TTFN



 
It works. I apologize for not so smart post. I'm 99% sure I tried it and got an error message ... hum.. I guess I'm getting old. Thanks IRstuff.
 
No worries. I find VBA a bit squirrelly and nonintuitive quite often.

TTFN



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top