S
Silvershot
I have little problem with VBA Word.
I am traying to generate a new document that is going to show me a
summery.
I also want it to show me the date and time when the document was mate
in the Footer.
I used the following code.
ActiveWindow.View.SeekView = wdSeekCurrentPageFooter
Selection.TypeText Text:=vbTab & vbTab & "Gemaakt op: "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldDate
Selection.TypeText Text:=" "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldTime
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
But as soon as he reaches ActiveWindow.View.SeekView =
wdSeekCurrentPageFooter I get the error 4605.
I have tried on error resume next but this doesn't seem to work eether
Does anywhone know what I could try to get past this.
I am traying to generate a new document that is going to show me a
summery.
I also want it to show me the date and time when the document was mate
in the Footer.
I used the following code.
ActiveWindow.View.SeekView = wdSeekCurrentPageFooter
Selection.TypeText Text:=vbTab & vbTab & "Gemaakt op: "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldDate
Selection.TypeText Text:=" "
Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldTime
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
But as soon as he reaches ActiveWindow.View.SeekView =
wdSeekCurrentPageFooter I get the error 4605.
I have tried on error resume next but this doesn't seem to work eether
Does anywhone know what I could try to get past this.