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

Bkisley

Board Regular
Joined
Jan 5, 2017
Messages
100
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?
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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!
 
Upvote 0

Forum statistics

Threads
1,214,800
Messages
6,121,641
Members
449,044
Latest member
hherna01

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