I have been unable to get Access to open Word docs in maximised on Vista. I use the following, which will open the doc maximised in XP, but not Vista
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
Set WordRange = WordDoc.GoTo(What:=wdGoToBookmark, Name:="a7")
WordDoc.Bookmarks("a7").Select
I have tried adding a line after Set WordObj = CreateObject("Word.Application") which is WordObj.WindowState=wdWindowStateMaximize but that did not work.
The other problem I have relates to the selection of Bookmark (a7). I need the cursor to drop down two lines from the bookmark and I want to avoid using SendKeys as I had some problems with Vista and SendKeys.
Dim WordObj As Word.Application
Dim WordDoc As Word.Document
Dim WordRange As Word.Range
Set WordObj = CreateObject("Word.Application")
Set WordDoc = WordObj.Documents.Open _
("C:\Letters\0AMPMike.doc")
WordObj.Visible = True
Set WordRange = WordDoc.GoTo(What:=wdGoToBookmark, Name:="a7")
WordDoc.Bookmarks("a7").Select
I have tried adding a line after Set WordObj = CreateObject("Word.Application") which is WordObj.WindowState=wdWindowStateMaximize but that did not work.
The other problem I have relates to the selection of Bookmark (a7). I need the cursor to drop down two lines from the bookmark and I want to avoid using SendKeys as I had some problems with Vista and SendKeys.