![]() |
Return to MS Excel
Hi!
Question: After manage to send email from MS Excel using the following code: ActiveSheet.Range("A1:J9").Select ActiveWorkbook.EnvelopeVisible = True With ActiveSheet.MailEnvelope .Item.To = strTo .Item.Subject = strSubject .Item.Send End With But focus of the screen was 'stuck' in MS Outlook, how can i get the focus back to MS Excel using VB? Thanks |
Return to MS Excel
appActivate "Microsoft Excel"
-- Regards, Tom Ogilvy "Poh" wrote in message ... Hi! Question: After manage to send email from MS Excel using the following code: ActiveSheet.Range("A1:J9").Select ActiveWorkbook.EnvelopeVisible = True With ActiveSheet.MailEnvelope .Item.To = strTo .Item.Subject = strSubject .Item.Send End With But focus of the screen was 'stuck' in MS Outlook, how can i get the focus back to MS Excel using VB? Thanks |
Return to MS Excel
Million of thanks, it work!!
-----Original Message----- appActivate "Microsoft Excel" -- Regards, Tom Ogilvy "Poh" wrote in message ... Hi! Question: After manage to send email from MS Excel using the following code: ActiveSheet.Range("A1:J9").Select ActiveWorkbook.EnvelopeVisible = True With ActiveSheet.MailEnvelope .Item.To = strTo .Item.Subject = strSubject .Item.Send End With But focus of the screen was 'stuck' in MS Outlook, how can i get the focus back to MS Excel using VB? Thanks . |
All times are GMT +1. The time now is 03:33 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com