Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Selecting OK

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How can I auto select the "ok" button with a macro? or How can I turn off the "ok/cancle" verification.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,940
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    Without knowing which dialog you're referring to can't say for definite. However, I'd bet a pint that this will work:-

    Application.DisplayAlerts=False

    'Your code which causes the dialog

    Application.DisplayAlerts=True


    Excel automatically resets DisplayAlerts back to True anyway at the end of a procedure but it's good practice to do it anyway.

    HTH,
    D

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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