Hi,
I am opening IE and Outlook from a button on a form with the following code:
Private Sub OpenIEandOutlook_Click()
Dim x As Variant
Dim y As Variant
Dim Path1 As String
Dim Path2 As String
Path1 = "C:\Program Files\Internet Explorer\iexplore.exe"
Path2 = "C:\Program Files (x86)\Microsoft Office\OFFICE11\OUTLOOK.EXE"
x = Shell(Path1, vbNormalFocus)
y = Shell(Path2, vbNormalFocus)
End Sub
I would like to close the two programs from a single button. I have been unsuccessful using .quit. Any help would be appreciated. Thank you in advance.
I am opening IE and Outlook from a button on a form with the following code:
Private Sub OpenIEandOutlook_Click()
Dim x As Variant
Dim y As Variant
Dim Path1 As String
Dim Path2 As String
Path1 = "C:\Program Files\Internet Explorer\iexplore.exe"
Path2 = "C:\Program Files (x86)\Microsoft Office\OFFICE11\OUTLOOK.EXE"
x = Shell(Path1, vbNormalFocus)
y = Shell(Path2, vbNormalFocus)
End Sub
I would like to close the two programs from a single button. I have been unsuccessful using .quit. Any help would be appreciated. Thank you in advance.