Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK 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
Aug 11, 2005
2
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?
 
Replies continue below

Recommended for you

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