Dear all guru
I have made a serach table using the advance filter
However, i do not know how to make a dynamic range for the "List Range"
Appreciate any help
Eric
Dear all guru
I have made a serach table using the advance filter
However, i do not know how to make a dynamic range for the "List Range"
Appreciate any help
Eric
If you want to make a dynamic range in column A, for example.
Dim rng As Range
With ActiveSheet
Assumes data begins in cell A2.![]()
Please Login or Register to view this content.
The 1 in the 'Cells(Rows.Count, 1).End(xlUp) statement indicates the column number and can also be designated using the alpha characters in quotes, e.g. "A".
This syntax effectively goes to the bottom of the column and comes back up until it finds a cell with data, so if you add or delete rows it will automatically adjust to the size of the data range.
Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
Just when I think I am smart, I learn something new!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks