Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

[SOLVED] Correcting Ambiguous name detected

$
0
0
Hello I am new to macros, and usally get help from someone that dose these alot... But today she is um...
any way I am trying to use a macro to Check put a check box in a field, I need to do this at least twice.
I repeated the macro code, changing the cells I wanted to check. I am doing this for a Physical therapy Sheet that has to log time in and out.

This is the code I used, the only thing I am changing is the Target.Address from "U17" to "F17"

Code:

Private Sub Worksheet_Selection_Change(ByVal Target As Range)
    If Target.Address(False, False) = "U17" Then
        Target = IIf(Target = "a", "", "a")
            Application.EnableEvents = False
        Range("F21").Select
    Application.EnableEvents = True
    End If
    End Sub


Viewing all articles
Browse latest Browse all 50070

Trending Articles