+ Reply to Thread
Results 1 to 2 of 2

Thread: macro for drawing

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    Skopje, Macedonia
    MS-Off Ver
    Excel 2003
    Posts
    1

    macro for drawing

    i guess is simple but i just cant getting done, so please help - is obsessing me

    I need draw a trapezoid by running a macro
    the thing is that i need to be done it wherever i click (select) - relative - and not where is selected when i record.

    I do not now if I make myself clear - wherever i click i want an trapezoid

    Please help me with this.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: macro for drawing

    Put this code in a standard code module.

    Select a range and run the macro

    Sub InsertTrapeziod()
        With Selection
            .Parent.Shapes.AddShape msoShapeTrapezoid, .Left, .Top, .Width, .Height
        End With
    End Sub
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0