+ Reply to Thread
Results 1 to 3 of 3

Turning off alerts in VBA

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Posts
    164

    Turning off alerts in VBA

    I have a huge bit of VBA that includes some open worksheet functions.

    I need to be able to turn-off or ignore the messages that come up asking if I want to open the file as read only etc.

    I want to open all files as read only.


    any ideas?

  2. #2
    Tom Ogilvy
    Guest

    Re: Turning off alerts in VBA

    Use the readonly argument in the worksheet.Open method. You won't be
    prompted if you provide the answer.

    --
    Regards,
    Tom Ogilvy

    "matpj" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I have a huge bit of VBA that includes some open worksheet functions.
    >
    > I need to be able to turn-off or ignore the messages that come up
    > asking if I want to open the file as read only etc.
    >
    > I want to open all files as read only.
    >
    >
    > any ideas?
    >
    >
    > --
    > matpj
    > ------------------------------------------------------------------------
    > matpj's Profile:

    http://www.excelforum.com/member.php...o&userid=21076
    > View this thread: http://www.excelforum.com/showthread...hreadid=483117
    >




  3. #3
    Peder Myhre
    Guest

    RE: Turning off alerts in VBA

    How about:

    Application.DisplayAlerts = False

    --
    Peder Myhre


    "matpj" wrote:

    >
    > I have a huge bit of VBA that includes some open worksheet functions.
    >
    > I need to be able to turn-off or ignore the messages that come up
    > asking if I want to open the file as read only etc.
    >
    > I want to open all files as read only.
    >
    >
    > any ideas?
    >
    >
    > --
    > matpj
    > ------------------------------------------------------------------------
    > matpj's Profile: http://www.excelforum.com/member.php...o&userid=21076
    > View this thread: http://www.excelforum.com/showthread...hreadid=483117
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1