I'm trying to set a range of cells that are already selected is there a way to do it?
Range("e2").Select
Range(Selection.End(xlToRight), Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToLeft)).Select
Range(Selection, Selection.End(xlToRight)).Select
Set temprange = activeselection
I had to select that way because in the sheet there aren't data in all columns always but in E it have to and the data starts in row 2 it work fine but i need to set it as a range in other to pass a filter on it.
Activeselection was too easy so i should know that it wasn't going to work that way.. What is the proper way to do it? Thanks