+ Reply to Thread
Results 1 to 6 of 6

Select (from bottom) until Row 5

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Select (from bottom) until Row 5

    Hi all

    I have a macro that I run everyday.
    However, something bothers me, I need to manually deselect the four lines at the top as the should not be copied (but still are needed initially to support the user as references)

    The data can have any lenght (200 rows, 1,576 rows, etc). But thats not the problem.
    I'd like to know, whether it is possible to select all lines upto row 5 from the bottom
    (There are several reasons why it cannot be done from the top to down without re-writing most of the macro)

    Selection.End(xlUp).Select goes write to row 1

    Thx
    FD
    Last edited by FallingDown; 10-17-2012 at 06:36 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Select (from bottom) until Row 5

    May be this...

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Select (from bottom) until Row 5

    Where is your activecell when you run the macro. at the top of the column or bottom?

  4. #4
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: Select (from bottom) until Row 5

    Hi Sixthsense

    Your code almost works
    I face the problem that the selection should only capture data tilll column "N"
    Yours captures all, I tried to add "Range(Selection, Selection.End(xlToLeft)).Select", but it does not work (allthough I dont understand why)

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Select (from bottom) until Row 5

    Thanks for your feedback.

    Try this for partial selection
    Please Login or Register  to view this content.
    ---

    Sixthsense

  6. #6
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    361

    Re: Select (from bottom) until Row 5

    Hi Sixthsense

    Perfect!!
    Thanks a lot

+ 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