VBA That Creates New Tabs for Specific Values BUT ignores one Value

Bkisley

Board Regular
Joined
Jan 5, 2017
Messages
94
Hello Geniuses!

I have a code that refreshes my pivot table of names, copies a blank template, adds a new tab based on the values in that pivot table, and names each new tab the unique name from the pivot table. My issue is that since I am using a pivot table, it is pulling that columns header which is unable to be deleted. So when I run this macro, I get a new tab called "Client Name" aka the header of that pivot table column. I clearly do not want this. Am I able to ignore "Client Name" or start in Cell A2 to end of pivot table?
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Bkisley

Board Regular
Joined
Jan 5, 2017
Messages
94
I'm not sure how to delete this but I figured out the answer....In case anyone has the same problem and have the following in your code

For i = 1 To LastRow

All you have to do is change that 1 to a 2 and you're golden!
 

Watch MrExcel Video

Forum statistics

Threads
1,118,813
Messages
5,574,485
Members
412,596
Latest member
nickthebizz
Top