Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all
I'm having problems with pivot tables and coding that worked fine in XL03 but is failing in XL07. My code fails when I attempt to set the CurrentPage. I can manually change the CurrentPage to the value that my code is attempting, and then the code works. I can manually change the CurrentPage back again to its original value and the code works again. It makes no sense why it's not working. The line of code failing is this: pt.PivotFields("Month").CurrentPage = CStr(12) Thanks in advance Paul Martin Melbourne, Australia |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the following:
pt.PivotFields("Month").CurrentPage = CStr(12) & Chr(0) On Tuesday, January 12, 2010 3:11 PM Paul Martin wrote: Hi all I am having problems with pivot tables and coding that worked fine in XL03 but is failing in XL07. My code fails when I attempt to set the CurrentPage. I can manually change the CurrentPage to the value that my code is attempting, and then the code works. I can manually change the CurrentPage back again to its original value and the code works again. It makes no sense why it is not working. The line of code failing is this: pt.PivotFields("Month").CurrentPage = CStr(12) Thanks in advance Paul Martin Melbourne, Australia Submitted via EggHeadCafe Microsoft LINQ Query Samples For Beginners http://www.eggheadcafe.com/training-...Operators.aspx |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Macro w/ AppActivate = Run-time error '5': Invalid procedure call or argument | Excel Programming | |||
Export to excel via webpage: "Invalid Procedure Call or Argument" | Excel Programming | |||
Invalid Procedure call or Argument when Export to Excel via web pa | Excel Programming | |||
Pivot Table Creation Macro fails with Error #5 "Invalid procedure call or argument" | Excel Programming | |||
bizarre "invalid procedure call" error | Excel Programming |