+ Reply to Thread
Results 1 to 3 of 3

Creating Autoshape Macro

  1. #1
    Registered User
    Join Date
    04-23-2007
    Posts
    24

    Creating Autoshape Macro

    Hello,

    I have been trying to create a macro that once run will create a autoshape (Rectangle) based upon a list of people.


    To put it another way -

    I have a list of people who are attending an event
    Their attendance is "confirmed" some are "unconfirmed"
    If their attendance is "confirmed" then I would like to create a macro that, once run, will create an autoshape (rectangle) with their name on it. This is to create visual table plan of where everyone will be seated.


    Name | Attendance

    Mr A Confirmed
    Mr B Unconfirmed
    Mr C Confirmed


    I have tried using the AddShape Method with VB and had some success but couldnt work out how to add the text (name) to the object. Also if this macro was run more than once, which is probable, then I wouldNT want it to create duplicated shapes for those already "confirmed".


    Anyway I used the following code:-

    If Range("A1") = "1" Then _
    Shapes.AddShape msoShapeOval, Range("c1").Top, Range("c1").Left, 137.25, 54.75

    This is only a start but havent managed to get much further/closer to what i need.

    If possible could any of your guys point me in the right direction??

    Thanks in advance

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why not just use Conditional Formatting to highlight cells?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-23-2007
    Posts
    24
    Quote Originally Posted by royUK
    Why not just use Conditional Formatting to highlight cells?
    That is an option but really I want to have the shapes so that they can be arranged as a seating plan - not just to confirm attendance.

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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