Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SSS148 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
Aug 21, 2001
343
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.
 
Replies continue below

Recommended for you

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