Oh my....how utterly fascinating! Thanks. I will enjoy chewing on this f-ing f. How bizarre.
I have never seen such behaviour.
You can put the cursor AFTER the final paragraph mark in the header. If you do, the button to toggle between header/footer gets focus all by itself. Move the cursor in front of the paragraph mark, the toggle button loses focus.
Interesting.
It will NOT accept style changes.
The ASCII character of it is 102, which is indeed "f". However, I tried a wee test.
Code:
MsgBox Len(Selection.Text) & vbTab & Asc(Selection.Text) & _
vbCrLf & vbCrLf & Asc(Right(Selection.Text, 1))
This gives:
the length of the Selection
the ASCII character of the first character of the Selection
the ASCII character of the last character of the Selection
OK?
If you go into the document itself and put "f" (by itself) on a new paragraph, you get:
2 102
13
Which is correct. There are two characters (Len), the "f" (102), and 13 (the paragraph mark).
BUT......
If you go into the header and select everything and run the code, you get:
1 102
102
There is NO paragraph mark!!!!
This is why it is possible to put the cursor AFTER the (apparently visible) final paragraph mark. It
looks like a paragraph mark, but...it is not.
I have been using Word since 1.0 for DOS. I have never seen anything like this.
Finally, I tried to delete the entire range of the header with:
Code:
Dim r As Range
Set r = ActiveDocument.Sections(1) _
.Headers(wdHeaderFooterPrimary).Range
r.Delete
I get the following error message.
"There are too many spelling and grammatical errors in PPL101107.doc to continue displaying them. To check the spelling and grammar in this document choose Spelling and Grammar from the Tools menu."
Say what? Who asked you check spelling??????
Now....wait for it.....
when I press OK on the error message, the range IS deleted
along with the "f".......
after a three second pause - and I can clearly see there is NO "f" in the header - the "f' REAPPEARS!!!
What the...ummmm...f??
If I run the code a second time, there is no error message, and the "f" sits daintily, undisturbed. Which is more than I can say about myself.
There are no fields, or at least no fields appear when you toggle for them.
I have no...ummmm....f-ing idea.
I am
flabergasted and
flummoxed.
faq219-2884
Gerry
My paintings and sculpture