Setting Focus (1 Viewer)

Kempes

Registered User.
Local time
Today, 07:07
Joined
Oct 7, 2004
Messages
327
Hi,

I have some code that sends an email, then should display an excel message, however, once the email has been sent, the focus no longer is on excel and the taskbar application display flashes.

I have to click back onto the spreadsheet to display the message and continue.

Is there a way to set the focus back onto the worksheet?
 

Kempes

Registered User.
Local time
Today, 07:07
Joined
Oct 7, 2004
Messages
327
Think I've got it.

Activesheet.activexcontrol.activate

Seems to work OK.
 

Kempes

Registered User.
Local time
Today, 07:07
Joined
Oct 7, 2004
Messages
327
OK, I need help again.

This works fine for me, however, the spreadsheet is in UAT now so others are running it, however, at the point it says "Something is trying to send an email on your behalf.....", this message hasn't got focus and hide behind the spreadsheet. However, it runs OK for me.

Is there any way I can force this message to the front so people know there is an option to click?
 
Last edited:

Users who are viewing this thread

Top Bottom