Posts: 6
Threads: 3
Joined: Oct 2008
Ok is there a way that if i have a macro running and it acts a window, is there a code i can put in the file to make it activate the window last used (basically activate the last place my mouse clicked on.) If someone could help or point me in the right direction, it would be greatly appreciated ...
Posts: 11,910
Threads: 138
Joined: Dec 2002
Posts: 6
Threads: 3
Joined: Oct 2008
Not too sure, but i have a macro that searches word documents and activates them before reading them. I simply want it to activate the last place the mouse clicked before the file was run after it finishes.
Posts: 11,910
Threads: 138
Joined: Dec 2002
int hwnd=win ;;remember active window
...
act hwnd; err
Posts: 6
Threads: 3
Joined: Oct 2008