Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Jan 2001
    Location
    Illinois
    Posts
    552
    Thanks
    0
    Thanked 1 Time in 1 Post

    How to make a Set statement (Excel xp)

    I have this column of data

    100
    88
    C
    >
    BCGI
    9
    CFGH
    #
    BGK
    33
    BCDGHIK
    21
    CDGK
    28
    HI
    3

    14

    15
    BCDFK
    88*
    52
    35
    FG
    25**
    72

    i want to make a set statement to include only the cells that have numbers or numbers with ** and the # sign and the > sign. Is it possible to use the .SpecialCells(Type, Value) code?

    Once again, i appreciate all the help i've been receiving. <img src=/S/cloud9.gif border=0 alt=cloud9 width=25 height=23>

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: How to make a Set statement (Excel xp)

    Not solely with the SpecialCells method. Narrow your target down using <range>.Specialcells(xlCellTypeConstant, 2) to get just the text cells, then loop through all those cells, get the value of the cell, and use Select Case to process the cell or it's offsets however you want.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

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