How to use macro filter excel?

@prasath17 Ok , If can’t write in same sheet.
Can write in new sheet but same name (delete original sheet) ?