+ Reply to Thread
Results 1 to 5 of 5

sort till last row

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Post sort till last row

    Hi every body
    I have a sheet which includ some data and I update it several time it means added some row to my database each time when update
    my problem is here
    when I wrote a macro to sort this database in the macro I don't know how I can issue this code
    because I have range for example : A3:F30 in macro
    but each time when I update the file this range is changed and added to it for example A3:F34
    it means 4 row added to my base data
    and macro calculated for old range and miss 4 new range which added

    I am waiting for your help
    Attached Files Attached Files
    Last edited by pedjvak; 11-13-2012 at 05:40 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: sort till last row

    Considering that row 2 has your headers and data starts from row 3, try this code
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: sort till last row

    best thanks for you

  4. #4
    Forum Contributor
    Join Date
    06-23-2012
    Location
    tehran,iran
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: sort till last row

    Dear Arlu1201
    thanks for your nice attention to my requests
    could you please try in this new case :
    if we have new column like old matter in row , how we can fix it by code
    it means we have change (add new column) each time in dtat entry our scop for sorting will added

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: sort till last row

    Try this
    Please Login or Register  to view this content.

+ 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