Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How do I refer to a freeform name and number on a chart using

Thank you! That helped a lot. Good have you out there for learners like
myself.
--
Raas


"Vic Eldridge" wrote:

Hi Raas,

When creating any object (such as a shape object) , you can assign the
object to an "object variable" , whose scope and lifetime are at your
complete control.

eg

Sub AddFreeformShape()

Dim FFB As FreeformBuilder
Dim Shp As Shape

Set FFB =
ActiveSheet.ChartObjects(1).Chart.Shapes.BuildFree form(msoEditingCorner, 360,
200)
With FFB
.AddNodes msoSegmentCurve, msoEditingCorner, 380, 230, 400, 250,
450, 300
.AddNodes msoSegmentCurve, msoEditingAuto, 480, 200
.AddNodes msoSegmentLine, msoEditingAuto, 480, 400
.AddNodes msoSegmentLine, msoEditingAuto, 360, 200
Set Shp = .ConvertToShape
End With

MsgBox Shp.Name

End Sub




"Raas" wrote:

Thank you, but I already knew this part. I want to be able to retrieve the
freeform name and number from the system so I can refer to it. Each new
polygon I put on this chart gets a new freeform number assigned
automatically, and I need to retrieve this number out of the name.
--
Raas


"Vic Eldridge" wrote:

ActiveChart.Shapes("Freeform 1").Fill.ForeColor.RGB = vbRed

"Raas" wrote:


--
Raas

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to dump freeform coordinates (a plot shape) Durango Charts and Charting in Excel 6 November 26th 08 08:59 AM
Help! Ungrouping Excel Charts -- EMF/WMF. Can't edit objects in 2007 (Freeform issue). Steve Rindsberg? Bob Charts and Charting in Excel 2 November 12th 08 05:58 PM
Worksheet function to refer to columns by number mcambrose Excel Discussion (Misc queries) 1 October 13th 06 05:28 PM
Pick list or freeform text PJH Excel Discussion (Misc queries) 2 March 30th 06 05:11 AM
Freeform shapes Jackie[_5_] Excel Programming 2 June 8th 05 05:40 PM


All times are GMT +1. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"