comment box flags VBA

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
Hi guys tought one..

i can command excel to change the default comment box to what ever picture or shape i want, but can i also add lines of code to change the triangle flag top right to say 3 times its size ???

is is possible to change the coloyur to say blue or black also???

any ideas guys... mush love to do this...
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Guys spent a day playing on this one, any ideas or pointers??

Would be good thou:
And would hlep me a lot.... thanks again.
 
Upvote 0
Hi Jack,

Posted by Dave Peterson and Dana DeLouis in microsoft.excel.programming

http://groups.google.com/groups?hl=en&selm=3C7ABF50.5A72208D@msn.com

------------------------
Sub testme()

Dim mycell As Range
Dim myRng As Range
Dim lArea As Long

Set myRng = Selection

For Each mycell In myRng.Cells
If Not (mycell.Comment Is Nothing) Then
With mycell.Comment
.Shape.TextFrame.AutoSize = True
If .Shape.Width > 300 Then
lArea = .Shape.Width * .Shape.Height
.Shape.Width = 200
.Shape.Height = (lArea / 200) * 1.2
End If
End With
End If
Next mycell

End Sub
------------------------

You should be able tomanipulate the settings as you want.

HTH,
Jay
 
Upvote 0
Hi Jay --

Im impressed thanks for the effort i never know that site was there i stick onthis on eonly.. good info over there..

cheers again good start...
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,416
Members
448,960
Latest member
AKSMITH

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