ishanalikhan
New Member
- Joined
- Jul 28, 2021
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Learning Excel VBA on the go to automate a few processes at work and web search didn't provide an answer for this. I have a worksheet with about 15 columns that acts as a log for the work performed daily (Dates in column 1). These tasks are categorized for data analysis purposes (Categories in Column 11). The output is stored on Metrics sheet. I'm copying the dates column to a temp sheet and removing duplicates (using RemoveDuplicates) and then pasting the output data as column headers in Metrics sheet. I want to use these values to filter the original data and get the required numbers, but have been unable to do so. I'm using:
I tried by specifying the date format as well, but in vain.
I would like to use a for loop for each unique value in the date column.
Any help is greatly appreciated. Thank you.
VBA Code:
.autofilter field=1, Criteria:= Sheets("Metric").Range("B1").Value
I tried by specifying the date format as well, but in vain.
I would like to use a for loop for each unique value in the date column.
Any help is greatly appreciated. Thank you.