Archangelos
New Member
- Joined
- Aug 21, 2017
- Messages
- 49
I searched in the Internet and I found tons of stuff related to setting Header/Footer (Left, Right, Centre). However, I am trying to do the opposite and I have not succeeded.
What I need is to get the text (ONLY THE TEXT) from CenterHeader.
The text of CenterHeader was "Greece".
I run the following command.
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader
The A20 cell got the following value:
&"Arial,Έντονα"&UGreece (The word "Έντονα" means Bold in Greek)
This not what I want. I need only the text ("Greece") without the properties of it.
I tried to experiment by changing the command but the debugger «complaint».
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Text FAILED
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Value FAILED
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Caption FAILED
Any ideas?
What I need is to get the text (ONLY THE TEXT) from CenterHeader.
The text of CenterHeader was "Greece".
I run the following command.
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader
The A20 cell got the following value:
&"Arial,Έντονα"&UGreece (The word "Έντονα" means Bold in Greek)
This not what I want. I need only the text ("Greece") without the properties of it.
I tried to experiment by changing the command but the debugger «complaint».
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Text FAILED
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Value FAILED
Cells(1, 20) = ActiveSheet.PageSetup.CenterHeader.Caption FAILED
Any ideas?