I have this code to extract data with advance filter from one sheet to another based on one criteria , which I made myself, my problems is as follow : when I run the macro I would like the advance filter to choose information only from the range of cell that have value (i.e. my data base table range is A1:Q100 , the cell that contain value is fluctuate every months , one week is a1:Q55 , and week later is A1:Q69 , and here is where I need your assistance) and not from all the table range , my question how I can change the line 13 in my code " Sheets("Database").Range("B7:Q100").AdvancedFilter Action:=xlFilterCopy,CriteriaRange:=Range("IncOverTime!Criteria"),CopyToRange:=Range("B46:Q46") _ , Unique:=False" and change the rage "B7:Q100" to the range of cells that have value only
Thank you in advance for your collaborationPlease Login or Register to view this content.
Bookmarks