+ Reply to Thread
Results 1 to 12 of 12

draw multi Arc in in one group

  1. #1
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    draw multi Arc in in one group

    How to draw multi Arc Shape in in one group Lock like (Smiley Face 11) with adding Adjustment Item

    thanks

  2. #2
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    Re: draw multi Arc in in one group

    I sorry About duplicate this mistake from my side connection give me there is problem in connection

    from Mr Cheers Andy post
    Andy Pope

    how to collect Below 4 Arcs in 1 Arc group

    Sub FourQuadarents()
    Dim shpArc As Shape

    Set shpArc = CreateArc(50, 50, 100, 100, 0, 360)
    Set shpArc = CreateArc(108, 110, 10, 10, 0, 360)
    Set shpArc = CreateArc(172, 110, 10, 10, 0, 360)
    ' colour segement
    CreateArc(100, 170, 50, 30, 180, 360).Fill.ForeColor.SchemeColor = 43

    End Sub

    Function CreateArc(XLeft As Single, XTop As Single, XRadius As Single, YRadius As Single, _
    StartAngle As Single, EndAngle As Single) As Shape
    '
    Dim intAngle As Integer
    Dim dblA1 As Double
    Dim dblB1 As Double
    Dim dblA2 As Double
    Dim dblB2 As Double
    Const PI = (22 / 7) ' 3.14159265358979

    With ActiveSheet.Shapes.BuildFreeform( _
    msoEditingAuto, XLeft + XRadius, XTop + YRadius)

    For intAngle = StartAngle To EndAngle
    dblA2 = XLeft + XRadius + (Cos((intAngle * (PI / 180))) * XRadius)
    dblB2 = XTop + YRadius - (Sin((intAngle * (PI / 180))) * YRadius)

    .AddNodes msoSegmentLine, msoEditingAuto, dblA2, dblB2
    Next
    .AddNodes msoSegmentLine, msoEditingAuto, XLeft + XRadius, XTop + YRadius
    Set CreateArc = .ConvertToShape
    End With

    End Function
    Last edited by DOSSFM0Q; 07-19-2014 at 04:54 AM.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: draw multi Arc in in one group

    Please add your code betwen tags (#), according to the forum rules.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    Re: draw multi Arc in in one group

    Thanks Like this
    #Sub FourQuadarents()
    Dim shpArc As Shape

    Set shpArc = CreateArc(50, 50, 100, 100, 0, 360)
    Set shpArc = CreateArc(108, 110, 10, 10, 0, 360)
    Set shpArc = CreateArc(172, 110, 10, 10, 0, 360)
    ' colour segement
    CreateArc(100, 170, 50, 30, 180, 360).Fill.ForeColor.SchemeColor = 43

    End Sub#

    #Function CreateArc(XLeft As Single, XTop As Single, XRadius As Single, YRadius As Single, _
    StartAngle As Single, EndAngle As Single) As Shape
    '
    Dim intAngle As Integer
    Dim dblA1 As Double
    Dim dblB1 As Double
    Dim dblA2 As Double
    Dim dblB2 As Double
    Const PI = (22 / 7) ' 3.14159265358979

    With ActiveSheet.Shapes.BuildFreeform( _
    msoEditingAuto, XLeft + XRadius, XTop + YRadius)

    For intAngle = StartAngle To EndAngle
    dblA2 = XLeft + XRadius + (Cos((intAngle * (PI / 180))) * XRadius)
    dblB2 = XTop + YRadius - (Sin((intAngle * (PI / 180))) * YRadius)

    .AddNodes msoSegmentLine, msoEditingAuto, dblA2, dblB2
    Next
    .AddNodes msoSegmentLine, msoEditingAuto, XLeft + XRadius, XTop + YRadius
    Set CreateArc = .ConvertToShape
    End With

    End Function #

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: draw multi Arc in in one group

    @dossfmoq

    Please read the forumrules, before posting again.

    Please also use these rules.

    Please add your code between tags (as asked before).

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461

    Re: draw multi Arc in in one group

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Here is how to add code tags
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    Re: draw multi Arc in in one group

    Gooday Sir
    I Want to collect all of below shapes in uonin Group, not by Like this(Selection.ShapeRange.Group)
    thank you for your help

    Please Login or Register  to view this content.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461

    Re: draw multi Arc in in one group

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    Re: draw multi Arc in in one group

    Thank you Sir for respond, but I need to be all Nodes of Shapes in Nodes for One Shape Like this Sir Smile.PNG of
    Please Login or Register  to view this content.

    I Want to collect all of below shapes in uonin Group, not by Like this(Selection.ShapeRange.Group)

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461

    Re: draw multi Arc in in one group

    In that case I don't think you can. You can not define complex shapes link that.

    Why do you not want to use a group?

  11. #11
    Registered User
    Join Date
    12-21-2007
    Posts
    11

    Re: draw multi Arc in in one group

    Thank You Sir
    Last edited by DOSSFM0Q; 07-22-2014 at 04:43 AM.

  12. #12
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,461

    Re: draw multi Arc in in one group

    Looks like you might be able to do this with a combination of powerpoint and excel.

    Use powerpoint to create the shape.
    http://blogs.office.com/2012/03/20/c...werpoint-2010/

    The use the shape Nodes objects in excel to manipulate it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. draw multi Arc in in one group
    By DOSSFM0Q in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2014, 07:12 PM
  2. [SOLVED] Conditional Format to draw top and bottom borders at first and last of a group of text
    By jojo101 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-21-2013, 02:17 AM
  3. Group button on draw toolbar greyed out
    By jtpryan in forum Excel General
    Replies: 0
    Last Post: 02-28-2013, 09:38 PM
  4. Change order in a multi-shape group?
    By Jay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-05-2006, 06:45 PM
  5. [SOLVED] multi group with summary above with 1 overall summary line below
    By Freddy in forum Excel General
    Replies: 2
    Last Post: 11-07-2005, 11:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1