Hiya all
Im trying to write some code which will tell me how many products are within a selected range which is defined by the user.
I can easily loop through all the records in a sheet to find out whether they match my criteria but am struggling with pulling out just a certain range as i do not how to recieve the first and last row highlighted by a user.
Is there anyway i can pull off the first and last row which are highlighted by the user as activecell.row only pulls out the 1 white cell.
Thanks in advance
Adam
Im trying to write some code which will tell me how many products are within a selected range which is defined by the user.
I can easily loop through all the records in a sheet to find out whether they match my criteria but am struggling with pulling out just a certain range as i do not how to recieve the first and last row highlighted by a user.
Is there anyway i can pull off the first and last row which are highlighted by the user as activecell.row only pulls out the 1 white cell.
Thanks in advance
Adam