+ Reply to Thread
Results 1 to 5 of 5

Pass Shapes property names into module

  1. #1
    Registered User
    Join Date
    08-31-2006
    Posts
    11

    Question Pass Shapes property names into module

    Hi all,

    Ok, i'm not an expert at all with programming, so please bear with me:

    This is a dashboard design.

    In my spreadsheet I have (example) 4 drawings (shapes) -> they are all arrows.

    I have a column called STATUS which basically has list of GREEN, AMBER, RED, which I can select. Whenever I select the GREEN/AMBER/RED, the drawing change from UP, DOWN or HORIZONTAL.

    Each arrows will have its own status.

    Example:
    CEll - STATUS - ARROW
    Cell $C$5 - RED - DOWN
    Cell $C$16 - AMBER - HORIZONTAL


    so I have this as the 'main' in my Sheet1:
    Please Login or Register  to view this content.
    ......and so on

    Each of the CALL will have this:

    Please Login or Register  to view this content.
    .....

    and so on.

    this is quite cumbersome and what I need is to PASS the name of the SHAPES as parameter into the MODULE - just like passing the 'TARGET'

    Call changeTrend(Target1) ->.

    QS:

    HOW do I pass the name of the shapes as parameter???

    Thanks
    Last edited by mudraker; 05-07-2007 at 02:42 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Rexwrx,

    Wrap your code using the # tags or your post may get locked. The first thing to do is rename your arrows. This removes the code dependence of using the system name and having use that name in your code. Name them "Up Arrow", "Down Arrow", and "Horiz Arrow" instead of "AutoShape 10" etc. Select the shape and the name will appear in the Worksheet Name Box in the upper left corner. Click in the box, type the name you want, and hit the Enter key. Tour code can be shorten as well...

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    08-31-2006
    Posts
    11

    Smile

    Ok thanks for the two tips.

    will give it a try.

    actually i've got few sets of arrows, each set containing 'up', 'down', and 'horizontal'.

    do i need unique names for each sets?
    Last edited by rexwrx; 05-08-2007 at 08:14 PM.

  4. #4
    Registered User
    Join Date
    08-31-2006
    Posts
    11

    Question

    also i want say if Trend is "G", then i want the shape to be UP ARROW and colour to be GREEN.

    if trend is "R" then, shape to be DOWN ARROW, and colour to be RED

    if trend is "A" then, shape to be HORIZONTAL ARROW and colour AMBER.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-31-2006
    Posts
    11
    yay! this works also...

    Please Login or Register  to view this content.

+ 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