+ Reply to Thread
Results 1 to 4 of 4

Select a range...

  1. #1
    derobin
    Guest

    Select a range...

    Hi,

    I just want to select a one-column-range starting at the selected cell
    and stretching out until a row specified in variable x.
    There has to be a better way than this:

    Range(ActiveCell.Address & ":" & Left(Replace(ActiveCell.Address, "$",
    ""), 1) & x).Select

    What am I missing?

    Thx
    Robin


  2. #2
    Forum Contributor
    Join Date
    03-24-2004
    Location
    Edam Netherlands
    Posts
    181
    Sub Test()

    Dim x As Integer

    x = 8

    Range(ActiveCell.Address).Resize(x, 1).Select

    End Sub

  3. #3
    Ardus Petus
    Guest

    Re: Select a range...

    Activecell.resize(x,1).Select

    HTH
    --
    AP

    "Kaak" <[email protected]> a écrit dans le
    message de news: [email protected]...
    >
    > Sub Test()
    >
    > Dim x As Integer
    >
    > x = 8
    >
    > Range(ActiveCell.Address).Resize(x, 1).Select
    >
    > End Sub
    >
    >
    > --
    > Kaak
    > ------------------------------------------------------------------------
    > Kaak's Profile:
    > http://www.excelforum.com/member.php...fo&userid=7513
    > View this thread: http://www.excelforum.com/showthread...hreadid=555928
    >




  4. #4
    Registered User
    Join Date
    06-16-2006
    Location
    Tamworth, Staffordshire, UK
    Posts
    19

    Filter on a cell value

    Is it possible to have a column of multiple values and by clicking in the cell, it filters on that value?

+ 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