transfer data from sheet1 to multiple sheets based on names in specific column

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hi
i hope to help any body about transfer data from sheet1 to multiple sheets the sheet1 contains data from a2:j i would transfer data every code existed in column j where every code to transfer to a new sheet and rename the sheet in column j for instance if the transfer data capital as what exist in column j the sheet's name is capital and so on the rest in code column j and transfer data from a2:j to relating sheet's name is capital and do for all rests i want this by code

88.JPG
 
Did it rename the new sheet?
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
i rename my sheet it was main i changed to master as your code
 
Upvote 0
When it created a new sheet did it rename that sheet?
 
Upvote 0
If it only created one new sheet & then gave the error you mentioned. Then as I said, the only way I can get that error is if there is a blank cell in column J
 
Upvote 0
the main reason is my file i test to another file your code does really works i'm really sorry about waste your time i have a simple request i don't need auto-filter in the "master" sheet is there any way to do it
 
Upvote 0
I'm sorry, but I don't understand
 
Upvote 0
i would in image 2 not image 1 remove arrows about filter data
g.jpg



cc.jpg
 
Upvote 0
How about
Rich (BB code):
Sub abdelfattah()
   Dim Cl As Range
   Dim Ws As Worksheet
   
   Set Ws = Sheets("Master")
   With CreateObject("scripting.dictionary")
      For Each Cl In Ws.Range("J2", Ws.Range("J" & Rows.Count).End(xlUp))
         If Not .Exists(Cl.Value) Then
            .Add (Cl.Value), Nothing
            Ws.Range("A1:J1").AutoFilter 10, Cl.Value
            Sheets.Add(, Sheets(Sheets.Count)).Name = Cl.Value
            Ws.AutoFilter.Range.Copy Range("A1")
         End If
      Next Cl
      Ws.AutoFilterMode = False
   End With
End Sub
 
Upvote 0
excellent fluff that's what i would thank you for your efforts and time
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top