## COMMENT BOXES WITH CHANGIGN DATA ##

rudling

New Member
Joined
Feb 3, 2005
Messages
18
me again..! i hope you are as quick and helpful as last time!

I have a set of ranges i.e Green max = 3, green min = 0, red max = 10, red min = 3

I want to put a comment box on my spread sheet that shows these ranges, but I want the comment box to update if I change the ranges on the spread sheet...

any help is so appreciated
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
you need some VBA code. This would work. If you change the Values in cells E1:E4 the comment values would change in cell A1.

You can download an example workbook at:

http://www.squish.com/Cloverleaf/Comment.xls

To view the code on the example worksheet you can press Alt+F11

Here is the VBA code Below

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Set rng = Sheets("Comments").Range("A1")
rng.ClearComments
rng.AddComment
rng.Comment.Visible = True
rng.Comment.Text Text:="Green Max = " & Range("E1").Value _
& Chr(10) & "Green Min = " & Range("E2").Value & Chr(10) & "Red Max = " & _
Range("E3").Value & Chr(10) & "Red Min = " & Range("E4").Value
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,737
Members
449,050
Latest member
excelknuckles

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