Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Field Format €“ Macro Wanted

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Pivot Field Format €“ Macro Wanted

ActiveCell.PivotField.NumberFormat = "0"



--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Field Format €“ Macro Wanted

I'm trying to format the entire FIELD as currency.
--
Ame


"Tom Ogilvy" wrote:

ActiveCell.PivotField.NumberFormat = "0"



--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Pivot Field Format €“ Macro Wanted

Sorry, I didn't realize you didn't know how to do a currency numberformat as
well as not knowing how to get the field from the activecell.

ActiveCell.PivotField.NumberFormat = "$#,##0.00"

--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I'm trying to format the entire FIELD as currency.
--
Ame


"Tom Ogilvy" wrote:

ActiveCell.PivotField.NumberFormat = "0"



--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Pivot Field Format €“ Macro Wanted

What I'm trying to do is make this macro totally GENERIC:
With ActiveSheet.PivotTables("PivotTable3").PivotFields ("Sum of Allowed")
.NumberFormat = "#,##0"
End With
Is that possible?
--
Ame


"Tom Ogilvy" wrote:

Sorry, I didn't realize you didn't know how to do a currency numberformat as
well as not knowing how to get the field from the activecell.

ActiveCell.PivotField.NumberFormat = "$#,##0.00"

--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I'm trying to format the entire FIELD as currency.
--
Ame


"Tom Ogilvy" wrote:

ActiveCell.PivotField.NumberFormat = "0"



--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Pivot Field Format €“ Macro Wanted

What is more generic than what I gave you?

All you have to do is click in the column in the pivot table you want
formatted and run the macro.

--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

What I'm trying to do is make this macro totally GENERIC:
With ActiveSheet.PivotTables("PivotTable3").PivotFields ("Sum of Allowed")
.NumberFormat = "#,##0"
End With
Is that possible?
--
Ame


"Tom Ogilvy" wrote:

Sorry, I didn't realize you didn't know how to do a currency numberformat as
well as not knowing how to get the field from the activecell.

ActiveCell.PivotField.NumberFormat = "$#,##0.00"

--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I'm trying to format the entire FIELD as currency.
--
Ame


"Tom Ogilvy" wrote:

ActiveCell.PivotField.NumberFormat = "0"



--
Regards,
Tom Ogilvy


"dpci_ajp" wrote:

I frequently use Currency Format, no decimals, for my pivot table field
formats. I cant figure out how to program Active pivot table, Active field
in a macro.
--
Thanks,
Ame

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
Pivot 2007. Format row field Hennie[_2_] Excel Discussion (Misc queries) 0 November 2nd 09 12:02 AM
Pivot Table - NUMBER FORMAT option does not appear in field settin cmgedc Excel Discussion (Misc queries) 3 November 5th 08 12:52 AM
Pivot Table field macro [email protected] Excel Worksheet Functions 1 June 22nd 08 12:21 AM
Pivot Table Row Field Format (OLAP Source) Adrian Morris Excel Discussion (Misc queries) 2 December 16th 05 10:37 AM
How to specify a cell format for pivot data field? Ai_Jun_Zhang[_12_] Excel Programming 3 September 24th 05 01:40 AM


All times are GMT +1. The time now is 03:53 PM.

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"