Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro to create a pivot table

I have seen some answers to this question, but my problem is so simple that I
can't seem to make it work. :-) I have a sheet with about ten columns of
data. I need to create a pivot table with Salesrep as the row field and
Grossamount as the data field. I want to save this pivot table to a sheet
called AcqPivot in the same workbook (AcqReport) and rewrite the old table.
It's so simple that I wouldn't even bother with a macro if I didn't have to
do this several times a day. I've tried several approaches, many from this
site, all with different errors. I believe I am making this too complicated.
I tried recording, no dice, I tried some code samples, but I can't seem to
make it simple enough without breaking something. I'm on Excel 2003. Any
suggestions for sites with reliable code suggestions, examples, or tips would
be very much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default macro to create a pivot table

Give us some idea about your data. Are they in consecutive columns? Any
gaps in the headers at all. Does it start from A1 and go across, eg B1, C1
etc. What about number of rows - is it consistent or does it vary. If it
varies, do you have one of those fields that you can rely on to hold data in
every single record, eg if your data was in say A1:K100, could you say
perhaps that every record would have a value in Col C or D etc etc.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"Catie79" wrote in message
...
I have seen some answers to this question, but my problem is so simple that
I
can't seem to make it work. :-) I have a sheet with about ten columns of
data. I need to create a pivot table with Salesrep as the row field and
Grossamount as the data field. I want to save this pivot table to a sheet
called AcqPivot in the same workbook (AcqReport) and rewrite the old
table.
It's so simple that I wouldn't even bother with a macro if I didn't have
to
do this several times a day. I've tried several approaches, many from
this
site, all with different errors. I believe I am making this too
complicated.
I tried recording, no dice, I tried some code samples, but I can't seem to
make it simple enough without breaking something. I'm on Excel 2003. Any
suggestions for sites with reliable code suggestions, examples, or tips
would
be very much appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Record Macro to Create Pivot Table Ken Excel Discussion (Misc queries) 1 April 25th 07 09:42 PM
Can I run a macro to create a pivot table? Eqa Excel Discussion (Misc queries) 2 April 8th 07 06:16 AM
create a macro for a combo box to change a pivot table [email protected] Excel Programming 1 September 24th 05 10:35 PM
Assign a macro to create a pivot table acsugguiyao Excel Programming 2 June 23rd 05 03:04 AM
Macro to create pivot table/ chart Saint Excel Programming 2 July 6th 04 08:29 PM


All times are GMT +1. The time now is 08:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"