Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Anyone who can help me with this,
I have this problem and this is the screnario: On a pivot table ("Pivot1") the ColumnField ("Month") refers to a dat with Month format (1-12). I would like to retrieve the data to MonthName format ("mmm"). My code goes like this but doesn't work: With .PivotFields("Month") .Subtotals = Array(False, False, False, False, False, False False, False, False, False, False, False) .PivotItems("(blank)").Visible = False .AutoSort xlAscending, "Month" .function = format(Monthname( ,true),"mmm") End With Thanks and more power!! -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try something like
Format(DateSerial(Year(Date),Month,1),"mmm") where month is the variable value. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Billabong " wrote in message ... Anyone who can help me with this, I have this problem and this is the screnario: On a pivot table ("Pivot1") the ColumnField ("Month") refers to a data with Month format (1-12). I would like to retrieve the data to a MonthName format ("mmm"). My code goes like this but doesn't work: With .PivotFields("Month") Subtotals = Array(False, False, False, False, False, False, False, False, False, False, False, False) PivotItems("(blank)").Visible = False AutoSort xlAscending, "Month" function = format(Monthname( ,true),"mmm") End With Thanks and more power!!! --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Functions for "current" & "previous" month to calculate data | Excel Worksheet Functions | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |