Hi,
I am new to VBA, I have recorded a macro.
I wanted to create pivot table by recording a macro, so I clicked on record button and inserted a pivot table in a new worksheet, when I inserted new worksheet the sheet was sheet4 I renamed it as pivot, I extracted the data from pivot and copied the data to another worksheet and named it as Summary (which was sheet5), got back to pivot table and deleted the worksheet which I had named as pivot.
now the problem is when I run the macro it shows an error coz when the macro inserts a worksheet it is not renaming the sheet to pivot.
guess its one code line which can execute this, can you help me please.
Regards,
Ron
I am new to VBA, I have recorded a macro.
I wanted to create pivot table by recording a macro, so I clicked on record button and inserted a pivot table in a new worksheet, when I inserted new worksheet the sheet was sheet4 I renamed it as pivot, I extracted the data from pivot and copied the data to another worksheet and named it as Summary (which was sheet5), got back to pivot table and deleted the worksheet which I had named as pivot.
now the problem is when I run the macro it shows an error coz when the macro inserts a worksheet it is not renaming the sheet to pivot.
guess its one code line which can execute this, can you help me please.
Regards,
Ron