VBA for pivot table

isacp

Board Regular
Joined
Dec 16, 2004
Messages
135
can you please help me with setting up a pivot table by code
very simple
column b & c go in coulmn fields
column d-h go in row fields
c is position 1
d is position 2
d-h is summed and in order
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
isacp

Why not start by recording a macro when you create the pivot table with those specifications?

This should generate code that can be adapted as needed.

BTW what are you actually trying to do?
 
Upvote 0
i get a e mail of sales figures
the sales comes in three columns one is phone sales one is mail and the other is store
i get these in the rows
column a = names
b= order type(phone, mail,store)
c-h is numbers
each persons name is written three times
i need to combine 2 of them
but it depends if hes a store guy then i combine mail and store
if hes phone then mail and phone
so i put it into a pivot while recording(i did that yesterday)
and after working for a while and finished everything i tried it again and now it wont make a pivot table some error comes up
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,036
Members
449,205
Latest member
Eggy66

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