Results 1 to 2 of 2

Thread: [RESOLVED] Missing Dim ??

  1. #1

    Thread Starter
    New Member ksor's Avatar
    Join Date
    Oct 2022
    Posts
    13

    Resolved [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 ?

  2. #2

    Thread Starter
    New Member ksor's Avatar
    Join Date
    Oct 2022
    Posts
    13

    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
  •  



Click Here to Expand Forum to Full Width