Shell not displaying (1 Viewer)

kirkm

Registered User.
Local time
Tomorrow, 09:39
Joined
Oct 30, 2008
Messages
992
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

Registered User.
Local time
Today, 15:39
Joined
Apr 9, 2015
Messages
3,644
Running shell event does not keep a cmd window open.
It just executes the command.
 

kirkm

Registered User.
Local time
Tomorrow, 09:39
Joined
Oct 30, 2008
Messages
992
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