Pivot table creation without sheet name

Leo55

New Member
Joined
Aug 10, 2022
Messages
18
Office Version
  1. 2010
Platform
  1. Windows
I have been searching a solution and cannot seem to find one, is this possible,

What I am trying to do is write a macro that will create a pivot table onto another tab.

The sheet that the data is on is titled with a customer reference number which changes from workbook to workbook.

Is it possible to create a macro that will create a pivot table on a new sheet without the need to use the data sheets name?

Thanks in advance
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I have been searching a solution and cannot seem to find one, is this possible,

What I am trying to do is write a macro that will create a pivot table onto another tab.

The sheet that the data is on is titled with a customer reference number which changes from workbook to workbook.

Is it possible to create a macro that will create a pivot table on a new sheet without the need to use the data sheets name?

Thanks in advance
Just to clarify - I want a macro that will create a Pivot table of the data contents of sheet 1 (which name changes every time). so the macro needs to not be affected by the name of the sheet being different.
The data range can be the entire sheet as I would like the pivot to capture all the data on the database.

Thanks in advance
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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