Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default VBA - Switching between programs and detecting errors

Hello,

I have a VBA program in Excel that launches Word.

1) Sometimes it appears that the program is hanging when in fact there is a
dialog message in Word. I do not want to disable dialog because I want my
user to answer the question Word is asking.

I've tried using the Activate method on the Word document at the time I know
when the message would come to simply so that the message will be seen more
readily, but it does not bring Word to the front like I expect. I figure it
should act like Alt+Tab but it doesn't.

Is Activate not the way to do this? Is there another way?

2) Similar to first, sometimes there is an error in Word. However, in this
case I do not want to Activate Word (never mind that it doesn't work for me
anyway) unless there is an error. In this case I want to detect the error
from within VBA. Is there a way to monitor the error status of the slave
program?

Thanks!

Bill


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"