I don't know how to find out a Com Object.
In this case i want to focus the header of my Word file (alternative to get there is Alt+V, H - but there i get every time i close word a building blocks prompt)
I think the first part is this:
oWord := ComObjActive("Word.Application")
Secons maybe something like:
oWord.Focus.Header
Jump to header in Microsoft Word via Com Object
Re: Jump to header in Microsoft Word via Com Object
focus header:
Code: Select all
oWord := ComObjActive("Word.Application")
; constants
wdSeekCurrentPageHeader := 9
; focus header
oWord.ActiveWindow.ActivePane.View.SeekView := wdSeekCurrentPageHeader
Bonus
Extra
Re: Jump to header in Microsoft Word via Com Object
That works perfectly.
Thank you very much.
Thank you very much.
Re: Jump to header in Microsoft Word via Com Object
Where do you find this information, about "ActiveWindow.ActivePane.View.SeekView" etc?
Who is online
Users browsing this forum: Joey5 and 291 guests