Create tabs for each name in horrizontal list and add there data

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,210
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I have data I want to split up into clients names.
In range K5:"Last column" & 5
I have a list of clients names

I want to create a tab for each client and add there data to that page but I have a umber of problems please help if you can?

So for each name I want to create a tab call it that clients name, (but if the name is to long just shorten it not give me the error)
the filter sheet "Master" range "P25:P1000" for there name copy and paste into their sheet cell D25

please help if you can

Thanks

Tony
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Let's start with this and tell me what you need.

Code:
Sub Create_tabs()
  Dim c
  For Each c In Range("K5", Cells(5, Columns.Count).End(xlToLeft))
    Sheets.Add(after:=Sheets(Sheets.Count)).Name = Left(c, 30)
    Sheets("Master").Range("P25:P1000").Copy Range("D25")
  Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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