Check Box Macro

EE Pros,

I have a Worksheet where I'm trying to modify a Macro that EE helped write some time ago.  

What it does;  You can select a designated cell next to a Statement/Question (the BLACK CELL),  and double click, a macro fires that adds a check in the box.  It's done by using Wingdings and a macro that recognizes the click and inserts the appropriate letter (P).

What I'm trying to do:  I now need this capability in a multi-level (indented) List and wish to have the same capabilities across each identified Row.  The way I have identified the active cell is by using a helper cell (in A) and using 1, 2 and 3 for different Offsets.  I need help in modifying the macro to accomplishing this slight change.  Specifically, if there is a 1, 2 or 3 in Column A, then the macro places the appropriate letter (P) in the correct Box (Black).

Thank you in advance.  File Attached.

B.
Defining-the-Check-Boxes.xlsm
Bright01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KimputerCommented:
add this code in the sub you already have

If Target.Column = 4 Then
    If ActiveCell.Offset(0, -3).Value = "2" Then
    
        Application.ScreenUpdating = False
        With ActiveCell
            If .Value = "P" Then
                .Value = ""
            ElseIf .Offset(0, 1).Value <> "" Then
                .Font.Name = "Wingdings 2"
                .Value = "P"
            End If
        
        End With
        Cancel = True
        Application.ScreenUpdating = True
        
    End If
End If


If Target.Column = 3 Then
    If ActiveCell.Offset(0, -2).Value = "1" Then
    
        Application.ScreenUpdating = False
        With ActiveCell
            If .Value = "P" Then
                .Value = ""
            ElseIf .Offset(0, 1).Value <> "" Then
                .Font.Name = "Wingdings 2"
                .Value = "P"
            End If
        
        End With
        Cancel = True
        Application.ScreenUpdating = True
        
    End If
End If

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ProfessorJimJamMicrosoft Excel ExpertCommented:
@Bright01

please find attached.
EE.xlsm
Bright01Author Commented:
Thanks guys!  Kemputer's code worked best because it did not add check mark capabilities into any other box then the black boxes (which was the requirement).   Professorjimjam, When you clicked boxes in the other cells to the left for the two indentions, you got extra check marks.  Both worked; one was more accurate then the other.

Thanks again to both of you for jumping in.

B.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.