+ Reply to Thread
Results 1 to 3 of 3

add to a range instead of setting?

  1. #1
    Registered User
    Join Date
    07-10-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    6

    add to a range instead of setting?

    Hi,
    I am trying to select a range given a if condition. this is what ive sritten so far...

    Please Login or Register  to view this content.
    however, it only selects the last TRUE cell... im guessing thats because it resets Other every time... how should i rewrite this to work? is there a way to add to a range instead of "setting" a range?

    Im basically trying to group a pivot table using a condition and therefore needs to find a way to select a number of cells.

    thanks!
    Last edited by primprim; 07-17-2010 at 07:52 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: add to a range instead of setting?

    You can use Application.Union to combine cells.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    07-10-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: add to a range instead of setting?

    thank you! exactly what i was looking for!

+ 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