Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Excel Program Glitch?

Why will it not let me use any of the below methods to
hide pivotfield "Percent Overdue"? When I take
pivotfield "Percent Overdue" out of the pivottable before
I run the codes, they all work fine. When I specify to
remove another pivotfield with another name, the codes
work fine. I even recorded a macro when I removed
pivotfield "Percent Overdue" and then copied that macro
and put it in a commandbutton. When I ran it, I got the
same error. The last code is the macro code. I get the
error "Run-time error '1004':
Unable to get the PivotFields property of the PivotTable
class"

Now the only difference in this pivotfield "Percent
Overdue" is I created it manually from right clicking on
the Pivot Table and selecting Formulas and then
calculatedField. I also happen to notice that when I right
click on the pivottable and then select wizard and layout
and then double click pivotfield "Percent Overdue" that
all the options in the summarize listbox are greyed out
where I cannot select any of them. On all the other
pivotfields I can change them. But I assume this is
normal because the created calculated field has its own
formula in it.

Please help.

Set pvttable = Worksheets("Reps Current").PivotTables
("PivotTable1")
For Each pvtfield In pvttable.DataFields
pvtfield.Orientation = xlHidden
Next pvtfield

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields.Item("Percent
Overdue").Orientation = xlHidden

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields("Percent Overdue").Orientation
= xlHidden

OR

ActiveSheet.PivotTables("PivotTable1").PivotFields
("Percent Overdue"). _
Orientation = xlHidden
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel Program Glitch?

Hi Todd
you seem to posting this question now for the third time :-)
As a regular poster you should no this won't help you!

--
Regards
Frank Kabel
Frankfurt, Germany


Todd Huttenstine wrote:
Why will it not let me use any of the below methods to
hide pivotfield "Percent Overdue"? When I take
pivotfield "Percent Overdue" out of the pivottable before
I run the codes, they all work fine. When I specify to
remove another pivotfield with another name, the codes
work fine. I even recorded a macro when I removed
pivotfield "Percent Overdue" and then copied that macro
and put it in a commandbutton. When I ran it, I got the
same error. The last code is the macro code. I get the
error "Run-time error '1004':
Unable to get the PivotFields property of the PivotTable
class"

Now the only difference in this pivotfield "Percent
Overdue" is I created it manually from right clicking on
the Pivot Table and selecting Formulas and then
calculatedField. I also happen to notice that when I right
click on the pivottable and then select wizard and layout
and then double click pivotfield "Percent Overdue" that
all the options in the summarize listbox are greyed out
where I cannot select any of them. On all the other
pivotfields I can change them. But I assume this is
normal because the created calculated field has its own
formula in it.

Please help.

Set pvttable = Worksheets("Reps Current").PivotTables
("PivotTable1")
For Each pvtfield In pvttable.DataFields
pvtfield.Orientation = xlHidden
Next pvtfield

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields.Item("Percent
Overdue").Orientation = xlHidden

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields("Percent Overdue").Orientation
= xlHidden

OR

ActiveSheet.PivotTables("PivotTable1").PivotFields
("Percent Overdue"). _
Orientation = xlHidden

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Excel Program Glitch?

My intentions are not to post multiple times. As I work
on this I keep noticing more information and problems that
I thought would be important.


-----Original Message-----
Hi Todd
you seem to posting this question now for the third

time :-)
As a regular poster you should no this won't help you!

--
Regards
Frank Kabel
Frankfurt, Germany


Todd Huttenstine wrote:
Why will it not let me use any of the below methods to
hide pivotfield "Percent Overdue"? When I take
pivotfield "Percent Overdue" out of the pivottable

before
I run the codes, they all work fine. When I specify to
remove another pivotfield with another name, the codes
work fine. I even recorded a macro when I removed
pivotfield "Percent Overdue" and then copied that macro
and put it in a commandbutton. When I ran it, I got the
same error. The last code is the macro code. I get the
error "Run-time error '1004':
Unable to get the PivotFields property of the PivotTable
class"

Now the only difference in this pivotfield "Percent
Overdue" is I created it manually from right clicking on
the Pivot Table and selecting Formulas and then
calculatedField. I also happen to notice that when I

right
click on the pivottable and then select wizard and

layout
and then double click pivotfield "Percent Overdue" that
all the options in the summarize listbox are greyed out
where I cannot select any of them. On all the other
pivotfields I can change them. But I assume this is
normal because the created calculated field has its own
formula in it.

Please help.

Set pvttable = Worksheets("Reps Current").PivotTables
("PivotTable1")
For Each pvtfield In pvttable.DataFields
pvtfield.Orientation = xlHidden
Next pvtfield

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields.Item("Percent
Overdue").Orientation = xlHidden

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields("Percent

Overdue").Orientation
= xlHidden

OR

ActiveSheet.PivotTables("PivotTable1").PivotFields
("Percent Overdue"). _
Orientation = xlHidden

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Excel Program Glitch?

Hi Todd
in this case just add this to your original thread as a follow-up
posting. IMHO otherwise these multiple postings could be a little bit
annoying

--
Regards
Frank Kabel
Frankfurt, Germany


Todd Huttenstine wrote:
My intentions are not to post multiple times. As I work
on this I keep noticing more information and problems that
I thought would be important.


-----Original Message-----
Hi Todd
you seem to posting this question now for the third

time :-)
As a regular poster you should no this won't help you!

--
Regards
Frank Kabel
Frankfurt, Germany


Todd Huttenstine wrote:
Why will it not let me use any of the below methods to
hide pivotfield "Percent Overdue"? When I take
pivotfield "Percent Overdue" out of the pivottable before
I run the codes, they all work fine. When I specify to
remove another pivotfield with another name, the codes
work fine. I even recorded a macro when I removed
pivotfield "Percent Overdue" and then copied that macro
and put it in a commandbutton. When I ran it, I got the
same error. The last code is the macro code. I get the
error "Run-time error '1004':
Unable to get the PivotFields property of the PivotTable
class"

Now the only difference in this pivotfield "Percent
Overdue" is I created it manually from right clicking on
the Pivot Table and selecting Formulas and then
calculatedField. I also happen to notice that when I right
click on the pivottable and then select wizard and layout
and then double click pivotfield "Percent Overdue" that
all the options in the summarize listbox are greyed out
where I cannot select any of them. On all the other
pivotfields I can change them. But I assume this is
normal because the created calculated field has its own
formula in it.

Please help.

Set pvttable = Worksheets("Reps Current").PivotTables
("PivotTable1")
For Each pvtfield In pvttable.DataFields
pvtfield.Orientation = xlHidden
Next pvtfield

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields.Item("Percent
Overdue").Orientation = xlHidden

OR

Worksheets("Reps Current").PivotTables
("PivotTable1").PivotFields("Percent Overdue").Orientation
= xlHidden

OR

ActiveSheet.PivotTables("PivotTable1").PivotFields
("Percent Overdue"). _
Orientation = xlHidden

.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Excel Program Glitch?

Hi Frank,
In other word's that's a know know

And Todd certainly already knows about
Hints for New Posters
http://www.cpearson.com/excel/newposte.htm

Misnamed subject, etc. -- don't know about the other
postings, but always best to add more information to the
original thread -- if you think you're going to get an answer.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm

"Frank Kabel" wrote in message ...
Hi Todd
you seem to posting this question now for the third time :-)
As a regular poster you should no this won't help you!

Todd Huttenstine wrote:
Why will it not let me use any of the below methods to





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 260
Default Excel Program Glitch?

lol alright thanks guys. I'm just losing my mind here as
I have been working on this same problem now for 4 hours...


-----Original Message-----
Hi Frank,
In other word's that's a know know

And Todd certainly already knows about
Hints for New Posters
http://www.cpearson.com/excel/newposte.htm

Misnamed subject, etc. -- don't know about the other
postings, but always best to add more information to the
original thread -- if you think you're going to get an

answer.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages:

http://www.mvps.org/dmcritchie/excel/excel.htm

"Frank Kabel" wrote in

message ...
Hi Todd
you seem to posting this question now for the third

time :-)
As a regular poster you should no this won't help you!

Todd Huttenstine wrote:
Why will it not let me use any of the below methods to



.

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
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Excel Title Bar Glitch Ryan Excel Discussion (Misc queries) 0 March 26th 08 08:07 PM
Anoying Excel 2007 glitch teepee Excel Discussion (Misc queries) 0 April 3rd 07 12:03 AM
Excel function glitch? bdog Excel Worksheet Functions 1 April 11th 06 06:01 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM


All times are GMT +1. The time now is 06:35 AM.

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

About Us

"It's about Microsoft Excel"