Consulting

Results 1 to 2 of 2

Thread: Solved: Sorting Issues.

  1. #1
    VBAX Regular
    Joined
    Aug 2011
    Posts
    17
    Location

    Solved: Sorting Issues.

    Hello guys,

    I'm having a little issue I'm hoping someone could help with.

    The attached excel file contain different tables on different sheets. These tables are the portions colored in green.

    I have written a code to go through each spreadsheet and sort the tables in ascending order on column K. The portions colored in blue are not to be sorted.

    What i will like to be able to achieve if possible, is to make individual tables (i.e the green colored portions) really flexible so that when i insert additional rows, i can still sort them without having to modify portions of my code.

    Any help received from you will be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,064
    Location
    Rather than nominating a set range ("K3:K4000" I think it was), within the code, try naming the individual ranges and making them dynamic.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •