Try the following I have used it succesfully to force vbforms to the top, if you pass the handle of Word into 'handle' then it should work.
Public Const HWND_TOPMOST = -1
Public Const TOPMOST_FLAGS = SWP_NOMOVE Or SWP_NOSIZE
' Example - MakeTopMost Me.hwnd
Public Sub MakeNormal(Handle As...
Try the following I have used succesfully
Public Const HWND_TOPMOST = -1
Public Const TOPMOST_FLAGS = SWP_NOMOVE Or SWP_NOSIZE
SetWindowPos Handle, HWND_TOPMOST, 0, 0, 0, 0, TOPMOST_FLAGS
Don't know whether this helps but I completed some work recently to export data to Excel in a VB6 project. I found the automation to Excel fro VB was a little flaky so as I was using an access database to store my data I wrote the procedures in Access VBA and then called the procedures from VB...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.