C
Carl
Hi all
I'm updating my code from WordBasic to Visual Basic. I
understand that Office XP has problems in this area in
particular with the header and footer thing.
Here is a sample of the code I have to insert a variable
into the header against a bookmark (rest of the code is
similar but ref the other headers).
Sub HeadFoot
dim strClass as string
WordBasic.NormalViewHeaderArea Type:=3, OddAndEvenPages:=1
ActiveDocument.Bookmarks("Class2").Select
Selection.TypeText Text:=strClass
WordBasic.ClosePane
End Sub
Is there a "neater" VB way?
I'm updating my code from WordBasic to Visual Basic. I
understand that Office XP has problems in this area in
particular with the header and footer thing.
Here is a sample of the code I have to insert a variable
into the header against a bookmark (rest of the code is
similar but ref the other headers).
Sub HeadFoot
dim strClass as string
WordBasic.NormalViewHeaderArea Type:=3, OddAndEvenPages:=1
ActiveDocument.Bookmarks("Class2").Select
Selection.TypeText Text:=strClass
WordBasic.ClosePane
End Sub
Is there a "neater" VB way?