Shell not displaying (1 Viewer)

kirkm

Registered User.
Local time
Today, 11:02
Joined
Oct 30, 2008
Messages
1,257
After first testing and seemingly okay this is now failing to show the Thunderbird Window until clicked in the taskbar,

Code:
thund = "D:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe " & _
                    "-compose " & """" & _
                    "to='" & email & "'," & _
                    "cc='" & cc & "'," & _
                    "attachment='" & Attached & "'," & _
                    "subject='" & subj & "'," & _
                    "body='" & body & "'" & """"
        
            Call Shell(thund, vbNormalFocus)
            SendKeys "^+{ENTER}", True

Are Shell, vbNormalFocus and Sendkeys correct ?
 

Ranman256

Well-known member
Local time
Yesterday, 19:02
Joined
Apr 9, 2015
Messages
4,339
Running shell event does not keep a cmd window open.
It just executes the command.
 

kirkm

Registered User.
Local time
Today, 11:02
Joined
Oct 30, 2008
Messages
1,257
The Access window remains, the thunderbird window doesn't appear (whch is what's wanted). Is this what Sendkeys is intended to do?
 

Users who are viewing this thread

Top Bottom