R
rgutter
Hi,
I thought I had a simple IPC mechanism in place for passing messages
to/from both a VB6 app and code running within Word. I set up a
separate controller EXE that first receives messages to register the
window handles of an invisible textbox in each app, and then uses
SendMessage to the textboxes, whose Change event handlers then respond
change the applications' states.
You probably know what I discovered. VBA UserForm controls are
windowless. I can use GetActiveWindow to return a handle by setting
focus to UserForm textbox, but that handle apparently becomes invalid
once VBA code outside the form resumes.
Does anyone have any suggestions on how to use SendMessage to anything
within the VBA environment that can respond upon changing? Or is the
paradigm useless within an Office app?
Thanks.
I thought I had a simple IPC mechanism in place for passing messages
to/from both a VB6 app and code running within Word. I set up a
separate controller EXE that first receives messages to register the
window handles of an invisible textbox in each app, and then uses
SendMessage to the textboxes, whose Change event handlers then respond
change the applications' states.
You probably know what I discovered. VBA UserForm controls are
windowless. I can use GetActiveWindow to return a handle by setting
focus to UserForm textbox, but that handle apparently becomes invalid
once VBA code outside the form resumes.
Does anyone have any suggestions on how to use SendMessage to anything
within the VBA environment that can respond upon changing? Or is the
paradigm useless within an Office app?
Thanks.