Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jun 2003
    Location
    Illinois
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cannot get past prompt (Outlook 2000 SP-3)

    I have a user who is running a Visual Basic script and gets a message every time he gets to a point in the program in which he gets prompted to click "Yes". I would like to know if there is a Visual Basic workaround that could be entered so I would not need to enter message every time

  2. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Cannot get past prompt (Outlook 2000 SP-3)

    Outlook VBA doesn't seem to have an equivalent of the Word/Excel property DisplayAlerts, so Sendkeys may be the only way: immediately above the instruction that causes the message to be displayed, insert an instruction

    SendKeys "Y"

    assuming that the Y in Yes is underlined. If the "Yes" button is the default button, you can also use

    SendKeys "{Enter}"

  4. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Cannot get past prompt (Outlook 2000 SP-3)

    Well, if there was a quick workaround, it would be found in lots of script viruses. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> There is no workaround automating Outlook directly. However, I have heard that the CDO object library is more flexible. Not everyone will have that installed, but if it's just for one user, it shouldn't be too difficult to try it out.

    On my computer, the DLL is here:
    C:PROGRA~1COMMON~1SystemMapi1033CDO.DLL

    The only top level object I see in the registry is MAPI.Session, so... I'm stuck. I think some searches might help.

  5. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Cannot get past prompt (Outlook 2000 SP-3)

    I know nothing at all about it, but I believe that a package called Redemption can be used to help you work around this issue.

    Now that we have our search back I can search the lounge for redemption, which turns up some useful posts, including the string of responses to post 77781

    StuartR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •