+ Reply to Thread
Results 1 to 3 of 3

Question about an argument

  1. #1
    Forum Contributor
    Join Date
    06-27-2006
    Posts
    310

    Question about an argument

    Could someone tell me how it would be possible to have an argument that
    is a color and have it accepted as either the number representing the color
    or a reference cell from which the color is copied.

    I think that I will need to identify what variable type is entered for the argument.

    Thank you for your help.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Probably be best to either specify the argument type with a second argument.

    An alternative is to have the default as being one option, and have a second optional argument that is invoked if you don't want to take the default option.

    rylo

  3. #3
    Forum Contributor
    Join Date
    06-27-2006
    Posts
    310
    Normally I would agree .

    But I have 2 colors.

    If I specify only one color the all rows are color1, if I specify two colors then the colors alternate.

    If I provide two options for variable types, my If statements are going to get
    complex.

    Maybe if I give that some thought I can make that work.

    Thank you for replying.

+ 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