Re: Assign a macro to create a pivot table

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I suspect the problem lies in a disconnect in your code and your data. The
sample code follows the proper syntax for the function. It is possible that
the condition of the table at the time the code is run does not permit this
modification. Only you can tell that by working through your code a step at
a time and examining the situation.

--
Regards,
Tom Ogilvy


"acsugguiyao" <acsugguiyao.1r0yig_1119438319.5689@xxxxxxxxxxxxxxxxxxxxx>
wrote in message
news:acsugguiyao.1r0yig_1119438319.5689@xxxxxxxxxxxxxxxxxxxxxxxx
>
> I am currently creating a macro from a data worksheet but I am receiving
> an error.
> :(
>
> Initially, I just recorded the macro however when I am running it, i am
> receiving an addfields method of Pivot Table Class failed.
>
> ActiveSheet.PivotTables("PivotTable4").AddFields RowFields:="Level 3",
> _
> ColumnFields:="Date"
>
> this is code that was having an error and I am not sure what was wrong
> with it?
> Can someone forward me a sample of the macro code to resolve this?
>
> Alib
>
>
> --
> acsugguiyao
> ------------------------------------------------------------------------
> acsugguiyao's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=24519
> View this thread: http://www.excelforum.com/showthread.php?threadid=381168
>


.



Relevant Pages

  • Re: Date stamp on exit
    ... page (page is called "Receiving Testing")and the other ... >'exiting' in your post... ... >private sub kitreturned_afterupdate ... >> I would like to set up a Macro, if possible, that fills ...
    (microsoft.public.access.formscoding)
  • Re: Deleting Even Pages Within Page-Range
    ... point me to) some sample code that would help me build a macro to ... I would like to bind this to a macro to automate this massive page ... then change that formatting to not use blank even pages. ... the repaginate method in VBA help for repaginating a document. ...
    (microsoft.public.word.vba.beginners)
  • Re: Automating Word from script
    ... I made some progress using your blog and the macro recorder in Word. ... selection to work with a few minor tweaks. ... .ApplyStyleHeadingRows = True ... sample code and maybe sample Word files and perhaps a list of vb ...
    (microsoft.public.outlook.program_vba)
  • Re: Need help
    ... program HelloWorld; ... stdin.get: Unknown data type. ... Macro called in file "stdout.hhf" at line 794 ...
    (comp.lang.asm.x86)
  • Re: need a sample code
    ... 1st of all thanks for your sample code. ... >> hai all ... I have separated the sending and the receiving parts ...
    (comp.os.linux.embedded)