Hey Derek - Thanks for your reply. The link you sent me, and most things I find searching for "Always on TOp Window in VBA" all use the same approach: the Windows API call SetWindowPos( ). These solutions make the form stay on top of other forms; but - like Windows Cross-reference dialog - I'm looking for a way to make the UserForm stay on top of any running Word application. I've tried about every Windowing API I could find (including tyring to set the Form as a child to different things), but nothing worked.
I don't have VB 6, I'm just developing with the VBA environment that comes with Word. Initially I was thinking there must be a way to do this, since the Cross-reference dialog does it, but since Word was written in C++ (I think), they could have used threads for the Cross-reference dialog. I don't think you can use threads with just the basic VBA that comes with Word. Maybe what I'm trying to do is not possible (without making a more complicated application with VB 6).
Thanks again for your help! |