PDA

View Full Version : How to bring a window of another document to the front



VinoBob
01-05-2010, 12:56 PM
Hello!

I have a form in a document, wherewith i should open another .doc file, and manipulate the text in it, and when i have finished, i should close that file but that one, which contains the form i should not. I made almost 99% of the code, and its working, but i cannot bring the window of the other document from the code into the front. I open the file in the forms initialize method and i set it immediately active, but thats not enough, even the AppActivate("Title") method isnt seem to work, the focus remains on the window which contains the form, and the form doesnt appear in the opened window, so i cannot see nothing from the text manipulation.
How can i bring it to the front, to see what gets changed in the opened document?

lucas
01-05-2010, 01:08 PM
Post your code please. Use the vba tags when posting code to format it for the forum.