F
Fabian
Hi,
Macro-recording doesn't seem to handle the German decimal point "," all too
well.
Using the Macro-Recorder when changing the unit in a Pivot table, the
algorithm generates:
Sub ChangeUnit()
'
' ChangeUnit Makro
'
' Tastenkombination: Strg+q
'
With ActiveSheet.PivotTables("PivotTable1").PivotFields( _
"Mittelwert von Cost per kW")
.NumberFormat = "#.##0,00 ""€/kW"""
End With
End Sub
.... whereas is should generate ...
Sub ChangeUnit()
'
' ChangeUnit Makro
'
' Tastenkombination: Strg+q
'
With ActiveSheet.PivotTables("PivotTable1").PivotFields( _
"Mittelwert von Cost per kW")
.NumberFormat = "#,##0.00 ""€/kW"""
End With
End Sub
.... for the macro to work properly.
Regards
p.s.: Excel 2010 Beta
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/com...197ae19&dg=microsoft.public.excel.programming
Macro-recording doesn't seem to handle the German decimal point "," all too
well.
Using the Macro-Recorder when changing the unit in a Pivot table, the
algorithm generates:
Sub ChangeUnit()
'
' ChangeUnit Makro
'
' Tastenkombination: Strg+q
'
With ActiveSheet.PivotTables("PivotTable1").PivotFields( _
"Mittelwert von Cost per kW")
.NumberFormat = "#.##0,00 ""€/kW"""
End With
End Sub
.... whereas is should generate ...
Sub ChangeUnit()
'
' ChangeUnit Makro
'
' Tastenkombination: Strg+q
'
With ActiveSheet.PivotTables("PivotTable1").PivotFields( _
"Mittelwert von Cost per kW")
.NumberFormat = "#,##0.00 ""€/kW"""
End With
End Sub
.... for the macro to work properly.
Regards
p.s.: Excel 2010 Beta
----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.
http://www.microsoft.com/office/com...197ae19&dg=microsoft.public.excel.programming