Checkbox to 'preset comment' in another cell

romovictor

New Member
Joined
Sep 9, 2014
Messages
2
Is it possible to have a spreadsheet where you can click a checkbox and that checkbox can populate another cell with a comment.

As an example it is for a marking sheet where i can click several checkboxes for criteria and have a comment box auto populate based on the check boxes selected?
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
.
.

Insert a Check Box (ActiveX Control) with something like this:

Code:
Private Sub CheckBox1_Click()

    Dim rng As Range
    Dim str As String
    Dim com As Comment
    
    Set rng = Me.Range("A1")   'cell to add comment to
    str = "The quick brown fox jumps over the lazy dog." 'text for comment
    
    'clear existing comment
    On Error Resume Next
    rng.ClearComments
    On Error GoTo 0
    
    If CheckBox1.Value Then
        Set com = rng.AddComment
        com.Text Text:=str
    End If

End Sub
 
Last edited:
Upvote 0
Thanks so much for the response

Im on a mac and cant seem to find the option to add an active x checkbox? I have added the developer tools to the ribbon but cant see active x checkbox?
 
Upvote 0
.
.

Developer --> Controls --> Insert --> ActiveX Controls --> Check Box.

If it's not there on mac, you could assign the macro to a form control check box instead...
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top