Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return focus to Excel App

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
I have some code in Excel:

Else
Unload frmLogin
MsgBox "Cannot carry out import. Unable to log in to Business Objects!", vbCritical
Exit Sub

The frmLogin unloads, but Excel then flashes and I have to either click on Excel in the task bar or click on the excel title bar to show the msgbox. Is there some code that, after unloading the user form, i can use to return focus to the excel spreadsheet so the user is shown the msgbox. Otheriwse, they will have to click on excel to see it.

Does this make sense?

Cheers,

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top