Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Spreadsheets (https://www.askmehelpdesk.com/forumdisplay.php?f=395)
-   -   VBA targeting #Ref! (https://www.askmehelpdesk.com/showthread.php?t=77419)

  • Mar 30, 2007, 05:35 AM
    Capuchin
    VBA targeting #Ref!
    I want to determine if a cell has returned the #REF! Error using an if statement, I have no idea how to address this.

    I've tried:
    Code:

    If [Cell] = "#REF!" Then....
    To no avail, returns a type mismatch, any other ideas? :)
  • Mar 30, 2007, 06:45 AM
    ScottGem
    Try this:

    If Evaluate("=ERROR.TYPE(" & Address & ")") = 4 Then
    action code
    End If
  • Mar 30, 2007, 07:28 AM
    Capuchin
    Same problem, type mismatch :/

  • All times are GMT -7. The time now is 04:52 AM.