+ Reply to Thread
Results 1 to 2 of 2

DisplayAlerts = False not working for formula that points to a missing tab

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    DisplayAlerts = False not working for formula that points to a missing tab

    my macro is putting formulas into cells which refer to cells in other files.

    DisplayAlerts = False is suppressing the alert for when a file doesn't exist and just skips it and gives a #REF error.

    But if the file exists and the tab I'm looking for doesn't, it pops up with the list of tabs in that file (I want it to just cancel and act the same as though the file didn't exist).

    Even if I put the "DisplayAlerts = False" immediately before the "cells(...).formula = ..." it still doesn't suppress it.

    Any ideas?

    Here's most of my code:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-17-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: DisplayAlerts = False not working for formula that points to a missing tab

    by file i mean workbooks

    and by tab i mean worksheets.

    sorry if there was any confusion.

+ 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