Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 131,633 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,483 people online right now. Registration is fast and FREE... Join Now!




How can I add text to an Excel shape

 
Reply to this topicStart new topic

How can I add text to an Excel shape, with Visual Basic

cero2k
post 14 May, 2008 - 12:28 PM
Post #1


New D.I.C Head

*
Joined: 12 May, 2008
Posts: 6


My Contributions


I'm trying to automate some call outs for excel 2003, I've alerady got the call out created and formatted, but I cannot seem to find any property or method that would actually add some text inside the call out...

here is the code I'm using to create the shape and give it format.

CODE

shape_one = oWS.Shapes

            Dim sh As Excel.Shape
            sh = shape_one.AddShape(Microsoft.Office.Core.MsoAutoShapeType.msoShapeLineCallout1BorderandAccentBar, 250, 250, 150, 75)

            With sh
                .Name = "testing call"
                .Fill.BackColor.RGB = RGB(250, 250, 250)
                .Fill.Solid()
                .Callout.CustomDrop(25)
                .Callout.CustomLength(150)
                .Callout.Angle = Microsoft.Office.Core.MsoCalloutAngleType.msoCalloutAngle30
            End With


where shape_one is a shapes object.

hope, you can help me out with this one...
thanks

This post has been edited by cero2k: 14 May, 2008 - 12:38 PM
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 05:42AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month