+ Reply to Thread
Results 1 to 4 of 4

Select from second row to last in column A - problem

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Select from second row to last in column A - problem

    Hello guys,
    I have a problem with selecting cells from A2 to A(last row) in a macro.
    In short - I filter a specific value, then walk all filtered values (unique ID in column A) and do something with them.

    I use this:

    Please Login or Register  to view this content.
    It works in the general case, but as far as I can see, when the last row is 2, the selected range breaks and the loop starts walking through all visible cells (A1last possible cell in excel)).
    Do you have any ideas how to avoid this?

  2. #2
    Valued Forum Contributor
    Join Date
    11-12-2014
    Location
    Nottingham
    MS-Off Ver
    2013
    Posts
    383

    Re: Select from second row to last in column A - problem

    Try using:

    Please Login or Register  to view this content.
    !If all your troubles are solved, then so is the thread. Show this by marking it so using thread tools at the top of the page.
    If I helped do this, then please show your appreciation by awarding rep points.
    <------ Button for that is over there

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Select from second row to last in column A - problem

    Try replacing

    Please Login or Register  to view this content.
    with

    Please Login or Register  to view this content.
    Does that help at all?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    06-27-2011
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Select from second row to last in column A - problem

    Hi guys,

    I found out that when a single cell is selected, and the property Specialcells is used, excel searches the whole workbook.
    I worked around it by:
    Please Login or Register  to view this content.
    It works just fine now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Select Case Code for Column A Values to Populate Results in Column B in Same Row
    By excelforumkeys in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-28-2014, 05:22 PM
  2. [SOLVED] Basis on 1st column automatically select input for 2nd column from another worksheet
    By AasifKhan in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 03-19-2014, 08:43 AM
  3. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  4. Replies: 10
    Last Post: 01-17-2013, 01:42 PM
  5. Column select problem
    By edhaddock in forum Excel General
    Replies: 2
    Last Post: 12-26-2006, 08:20 PM

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