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
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