LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Erroneous Macro Recording

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/comm...el.programming
 
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
Recording a Macro geocoy Excel Programming 3 November 12th 07 02:18 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 1 February 5th 07 09:31 PM
My excel macro recorder no longer shows up when recording macro jack Excel Discussion (Misc queries) 3 February 5th 07 08:22 PM
How do I make the Stop Recording bar pop up when recording macros J Excel Worksheet Functions 1 January 10th 06 08:46 PM
Erroneous Regression on Residuals Scott Excel Discussion (Misc queries) 3 July 27th 05 01:53 AM


All times are GMT +1. The time now is 07:16 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"