Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Macro or routine for Rev Cloud

Status
Not open for further replies.

maddocks

Petroleum
Joined
Aug 21, 2001
Messages
343
Location
CA
Has anyone written a macro or a routine for drawing a rev cloud that I can drop into a datasheet? The base drawing symbol for cloud on MSExcel is poor quality and it would be great if a macro existed that would draw the cloud around the offending cells and drop in a numbered triangle.
 
something like this:

Sub Macro1()
Set Cloud_Loc = Range("B2")
Cloud_Height = 48#
Cloud_Width = 72#
Cloud_Left = Cloud_Loc.Left + Cloud_Width
Cloud_Top = -1 * (Cloud_Loc.Top + Cloud_Height)
ActiveSheet.Shapes.AddShape(msoShapeCloudCallout, _
Cloud_Left, Cloud_Top, Cloud_Width, Cloud_Height).Select
End Sub

you would have to change the locaton (B2) to the cell you wanted or place it as a call by a certain key stroke combination.

or

just use the insert picture option in excel and then key the value over the top.




online weld & material tracking system
 
If you would want to add a triangle to the upper right corner, add the following code to his makecloud macro before the cl.Select line:

ActiveSheet.Shapes.AddShape(msoShapeIsoscelesTriangle, cloudleft + cloudwidth - 20, cloudtop, 20, _
30).Select


Selection.Characters.Text = Count
(for the text, you might need to link this to a cell in order to get the counter to work properly or see if anyone else has some ideas)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top