+ Reply to Thread
Results 1 to 6 of 6

Retrieve sort columns. Excel 2003.

  1. #1
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Retrieve sort columns. Excel 2003.

    Hi to all.

    First of all I’m sorry for my English.

    Let’s say i have a sheet with 4 columns and make a sort from vba in column b if i go in excel in data and after in sort they know i have make a sort in column b

    I would like to know if there is any way to retrieve the sort column or columns of a sheet via VBA.

    Thanks and regards.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Retrieve sort columns. Excel 2003.

    Hi Vagelisr,

    Welcome to the forum

    Could you supply more detail of what you want to happen?
    What is suppose to happen with this retrieved column?

  3. #3
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Retrieve sort columns. Excel 2003.

    Depend of the short i want to show and hire different columns.
    Is there any way VBA tells me that in my worksheet is sorted by columns A and B or only column A or only column B

    Thanks for your time.......

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,486

    Re: Retrieve sort columns. Excel 2003.

    Not sure what you mean, you are the one who determines what gets sorted.

  5. #5
    Registered User
    Join Date
    11-29-2010
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    75

    Re: Retrieve sort columns. Excel 2003.

    I have make a macro that sort my workbook by somy columns.
    I want with some how when user add a line the sort to extended in the new line.
    Is there any way to do this???

    Thanks again for your time.....

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Retrieve sort columns. Excel 2003.

    it's possible if you put sorting macro on Worksheet_change event but it will be not efficient (after each data row inserted the user will wait for sorting to complete), easier will be to sort data after all necessary rows have been added

+ 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