+ Reply to Thread
Results 1 to 6 of 6

sorting and locking rows

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2007
    Posts
    8

    sorting and locking rows

    (newbie so terms may be wrong)

    If I have a large database of information and wish to filter columns, is there a way to lock particular columns to they don't change. For instance:

    If I have 10 columns, and 500 rows, can I filter based on column 2 but make sure when it alphabeticalizes that rows 1 and 5 don't filter, ever, but allow the other 8 rows to filter accordingly ?

    red = lock
    1 2 3 4 5 6 7 8 9 10
    1 2 3 4 5 6 7 8 9 10
    1 2 3 4 5 6 7 8 9 10
    1 2 3 4 5 6 7 8 9 10
    1 2 3 4 5 6 7 8 9 10

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by DanMnz
    (newbie so terms may be wrong)

    If I have a large database of information and wish to filter columns, is there a way to lock particular columns to they don't change. For instance:

    If I have 10 columns, and 500 rows, can I filter based on column 2 but make sure when it alphabeticalizes that rows 1 and 5 don't filter, ever, but allow the other 8 rows to filter accordingly ?
    Hi,

    If you 'filter' then you select Rows to display (or not display).

    You cannot filter a portion of a row, nor can you select for filter non-contiguous columns, thus your question seems invalid.

    You can Filter - select from other columns and leave columns 1 & 5 set to 'All'

    Does this help?
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    05-18-2007
    Posts
    8
    Yes, thank you, that answer does help me.

    "non-contiguous columns" is where the problem is. Thought I could find a way around that, but I guess I can not.

    Thank you.

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by DanMnz
    Yes, thank you, that answer does help me.

    "non-contiguous columns" is where the problem is. Thought I could find a way around that, but I guess I cannot.

    Thank you.
    If the book is reasonably stable you could use some VBA code on a 'Worksheet_Change' trigger to test and remove any criteria that had been applied to Criteria1 or Criteria5 such as for

    Selection.AutoFilter Field:=1, Criteria1:="Monday"
    you would clear by using
    Selection.AutoFilter Field:=1
    but if you are not versed in VB then this could be fraught with danger.

    ---

  5. #5
    Registered User
    Join Date
    05-18-2007
    Posts
    8
    I'm great in visual basic 6, but never tried to use it with excel. I'll look into that. thank you.

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by DanMnz
    I'm great in visual basic 6, but never tried to use it with excel. I'll look into that. thank you.
    ok - try Tools, Record New Macro, and perform any function that you require to give you the basics of VBA code for that process, it's a good start (the Help is ok for supplying parameters if you know what you want to do, but pretty ordinary as a learning tool)

    http://www.excelforum.com/showthread.php?t=584092 has links to useful reading for all stages of development.

    ---

+ 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