-
Oct 5th, 2022, 04:18 AM
#1
Thread Starter
New Member
[RESOLVED] Missing Dim ??
I try start Outlook with this codesnip:
Code:
Dim oShell
oShell.run "cmd.exe /C ""C:\Users\kelds\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Outlook"" "
'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 ?
-
Oct 5th, 2022, 05:20 AM
#2
Thread Starter
New Member
Re: Missing Dim ??
Oh, I missed the
set oshell = CreateObject("Wscript.Shell")
Sorry folks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|