• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to filter and create separate sheets in excel

Nitesh Khot

Member
Hi...

How to Filter data State wise and create each state separate sheets with state name in excel using vba.

Thanks in advance

Nikh
 

Attachments

  • Filter&createsheets statewise.xlsx
    8.8 KB · Views: 1
Thanks but I am looking that suppose :- if I filter data then in my filter list display 4 state Haryana,Maharashtra,Punjab,Madhyapradesh ....now I want each state separate excel sheet....May be in my actual sheet States count is differ.

Any Idea...
 
In 6min you just overlooped on the link. Pls spare some time to get it so that you will able to manipulate it.
 
I am not understanding code and how to modify for me so i have do this using PIVOT with Double click via for loop.

Just one thing is how to check sheet name already exits in workbook if already exits then create sheet with same name with curent time seconds i.e. MAHARASHTRA1008

Private Sub DoubleClick1()


For i = 4 To 7
Sheets("Pivot").Select
Sheets("Pivot").Cells(i, 2).Select
Application.DoubleClick
ActiveSheet.Name = Range("F2").Value
ActiveSheet.Columns.AutoFit
Next i

End Sub
 
Back
Top