Jim McCarthy
New Member
- Joined
- Aug 16, 2004
- Messages
- 35
I have a sheet in which Cols A, B, C & D each has a macro that toggles autofilter ON/OFF based on the criterion selected for each column.
In the same sheet, columns M and N each contain a series of data and calculations. I sometimes need to manually copy the entire ccontents of one or both columns into adjacent columns (say copy col N to cols O, P & Q). However, if I forget to turn autofilter for col A, B C or D off before I copy and paste, I end up pasting only the filtered cells rather than the entire column contents, as intended.
What I need is an event handling subroutine that aurtomatically turns off autofilter when I select col M and/or N. I have played around with worksheet_SelectionChange but, being a VBA novice, have had no luck.
I would appreciate your help.
Thanks.
In the same sheet, columns M and N each contain a series of data and calculations. I sometimes need to manually copy the entire ccontents of one or both columns into adjacent columns (say copy col N to cols O, P & Q). However, if I forget to turn autofilter for col A, B C or D off before I copy and paste, I end up pasting only the filtered cells rather than the entire column contents, as intended.
What I need is an event handling subroutine that aurtomatically turns off autofilter when I select col M and/or N. I have played around with worksheet_SelectionChange but, being a VBA novice, have had no luck.
I would appreciate your help.
Thanks.