Siddhu11011
Board Regular
- Joined
- Jun 22, 2022
- Messages
- 56
- Office Version
- 365
- Platform
- Windows
Hi there.... I have macro in place to create sheets as per the date available in column E
Example:
I have 4 dates in column E such as
04/22 - 0428
Dates have been derived by Filter function
But I'm getting an error, please check below codes and advice
For each x "(range)" In Range ([E2], cells(rows.count, "E").End(xlup))
With rng
.Autofilter
..Autofilter Feild:=1, Criteria:=x.value
Sheets.add(After:=Sheets(Sheets.Count)).Name= x.value
End With
Next x
"Error is because of x.value" Any advice on this?
Example:
I have 4 dates in column E such as
04/22 - 0428
Dates have been derived by Filter function
But I'm getting an error, please check below codes and advice
For each x "(range)" In Range ([E2], cells(rows.count, "E").End(xlup))
With rng
.Autofilter
..Autofilter Feild:=1, Criteria:=x.value
Sheets.add(After:=Sheets(Sheets.Count)).Name= x.value
End With
Next x
"Error is because of x.value" Any advice on this?