I try start Outlook with this codesnip:
'Outlook' id a shortcut.
This error keeps comming up:
Unhandled exception at line 50, column 5 in KopierMail.vbs
0x800a01a8 - Der opstod en Microsoft VBScript-kørselsfejl: Et objekt er obligatorisk: 'oShell'
NO MATTER if I have or NOT have the 'Dim oShell'
What do I do wrong here ?
Code:
Dim oShell
oShell.run "cmd.exe /C ""C:\Users\kelds\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Outlook"" "This error keeps comming up:
Unhandled exception at line 50, column 5 in KopierMail.vbs
0x800a01a8 - Der opstod en Microsoft VBScript-kørselsfejl: Et objekt er obligatorisk: 'oShell'
NO MATTER if I have or NOT have the 'Dim oShell'
What do I do wrong here ?