TickLabels.NumberFormat is always localized

Diskutiere und helfe bei TickLabels.NumberFormat is always localized im Bereich Microsoft Office im Windows Info bei einer Lösung; I have a Chart and am trying to set its y-axis' number format locale independent: Me.ChartObjects(1).Chart.Axes(xlValue).TickLabels.NumberFormat =... Dieses Thema im Forum "Microsoft Office" wurde erstellt von 172 - Suiter. Simon, 2. Juli 2017.

  1. TickLabels.NumberFormat is always localized


    I have a Chart and am trying to set its y-axis' number format locale independent:


    Me.ChartObjects(1).Chart.Axes(xlValue).TickLabels.NumberFormat = "0.000"

    This does not work as excel localizes the formatcode first (replaces dot with comma for my german locale),

    showing the same behavior as


    Me.ChartObjects(1).Chart.Axes(xlValue).TickLabels.NumberFormatLocal = "0.000"




    How to reproduce:

    1. Have a locale with comma as decimal separator

    2. Open new workbook and paste this in the worksheet's module:


    Sub test()
    Me.Cells(1, 1) = 10
    Me.Cells(1, 2) = 20

    'gets formatted correctly'
    Me.Cells(1, 1).NumberFormat = "0.000"

    'gets also formatted correctly, though locale dependent'
    Me.Cells(1, 2).NumberFormatLocal = "0,000"

    Dim i As Integer
    For i = 1 To 4
    Me.ChartObjects.Add 0, 20 + (i - 1) * 100, 200, 100
    Dim s As Series: Set s = Me.ChartObjects(i).Chart.SeriesCollection.NewSeries
    s.Formula = "=SERIES(,," & Me.Name & "!$A$1:$B$1,1)"
    Next i

    'both get incorrectly formatted the same way
    Me.ChartObjects(1).Chart.Axes(xlValue).TickLabels.NumberFormat = "0.000"
    Me.ChartObjects(2).Chart.Axes(xlValue).TickLabels.NumberFormatLocal = "0.000"

    'both get correctly formatted the same way, though locale dependent
    Me.ChartObjects(3).Chart.Axes(xlValue).TickLabels.NumberFormat = "0,000"
    Me.ChartObjects(4).Chart.Axes(xlValue).TickLabels.NumberFormatLocal = "0,000"
    End Sub


    3. run the sub


    What happens: charts 1,2 are incorrect, 3,4 are correct

    What should happen: charts 1,4 are correct, 2,3 are incorrect


    It works for me like this in Excel 2010, 2013, 2016

    Is this a known bug or am i doing something wrong? Is there a workaround?
     
  2. ThomasPollak Win User

    Mein 365-Abo ist trotz Bezahlung auf dem Laptop gesaperrt. Hilfe?

    There is a new problem: I cannot uninstall Onedrive - although I did restart the Laptop, there is always the message: Onedrive is open and can therefore not be moved to the trash.
    <br />
  3. DimiTreee Win User

    Datumsformat Excel online verkehrte Darstellung

    Hallo Hans

    Unter den folgenden findest auf Englisch eine Erklärung und ein Lösungsvorschlag:

    https://www.ntweekly.com/2016/08/25/change-date...

    With some Office 365 subscriptions the default Date format Is set to American Date which Is not always convenient.

    Because Excel Online Is Actually a SharePoint online site we need to make the change Office 365 OneDrive site settings.

    Solltest du Probleme wegen der Sprache oder der Umsetzung haben, frag gerne nach.

    Bitte markiere meine Antwort als Hilfreich, wenn sie dir geholfen hat.

    LG

    Dimi
  4. Agnethe_E Win User

    Excel Crypted - corruped by hacker

    Hello Matteo,

    From our side, there is not much we can do. We suggest you to contact an IT-Specialist for advise. Moreover, maybe if you post in the English Forum, not in the German, you will get more responses from Community members. There is always a possibility they
    have an idea. You can reach the English Community via this site:

    https://answers.microsoft.com/en-us]

    However, please do not hesitate to ask any questions.

    Best regards,

    Agnethe
  5. Pauline R. Win User

    Markup wird bei jedem Öffnen des Dokumentes immer wieder aktiviert

  6. PeteM92 Win User

    Excel (2013) Scrollen geht nicht mehr seit KB3197954

    WizMouse habe ich nicht getestet, ich verwende ein ähnliches Tool "Always Mouse Wheel" aus dem Programm DesktopOK von SoftwareOK.de . Damit ist der Fehler auch behoben.

    Das ist definitiv ein Bug in Excel2016. Word 2016 und Excel2007 zeigen dieses ärgerliche Verhalten nicht.
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

TickLabels.NumberFormat is always localized - Microsoft Office

Die Seite wird geladen...

TickLabels.NumberFormat is always localized - Similar Threads - TickLabels NumberFormat always

Forum Datum

RAM always full

RAM always full: Hi guys, I got a new laptop 2 months ago Acer Swift 3, Windows 11, 8GB RAM. Since the beginning, the RAM is often at its limit, even if I don't have a lot of programs running. My laptop is also...
Apps 20. November 2024

RAM always full

RAM always full: Hi guys, I got a new laptop 2 months ago Acer Swift 3, Windows 11, 8GB RAM. Since the beginning, the RAM is often at its limit, even if I don't have a lot of programs running. My laptop is also...
Games und Spiele 20. November 2024

I changed Motherboard and format the PC and it always the see device is inactive

I changed Motherboard and format the PC and it always the see device is inactive: I have changed Motherboard and format the PC and it always the see device is inactive,Also code error .xC004F213
Apps 13. Oktober 2023

Office is weg

Office is weg: habe vor ca. 1,5 Jahren einen Lenovo-Laptop mit vorinstalliertem windows 10 und Microsoft-Office gekauft. Als dann die Möglichkeit kam, kostenlos auf windows 11 upzudaten, habe ich das gemacht und...
Apps 1. April 2022

Smart charging on Surface is always off

Smart charging on Surface is always off: Surface Pro 8 hängt am Netz. Angeblich soll der Ladevorgang bei 80 % stehen bleiben, aber in der Surface App steht, dass Smart charging off ist. Und das immer!
Surface 17. November 2021

Microsoft Outlook, "Always prompt for credentials" box is ticked, no credentials in control...

Microsoft Outlook, "Always prompt for credentials" box is ticked, no credentials in control...: Dear Helper, I am using Microsoft Outlook, installed on my PC. I would like to be prompted for credentials every time I open outlook on my PC. That is not what is happening, however. Two...
Microsoft Office 6. Februar 2019

Microsoft Outlook, "Always prompt for credentials" box is ticked, no credentials in control...

Microsoft Outlook, "Always prompt for credentials" box is ticked, no credentials in control...: Dear Helper, I am using Microsoft Outlook, installed on my PC. I would like to be prompted for credentials every time I open outlook on my PC. That is not what is happening, however. Two...
Outlook.com 6. Februar 2019
TickLabels.NumberFormat is always localized solved
  1. Diese Seite verwendet Cookies, um Inhalte zu personalisieren, diese deiner Erfahrung anzupassen und dich nach der Registrierung angemeldet zu halten.
    Auf dieser Website werden Cookies für die Zugriffsanalyse und Anzeigenmessung verwendet.
    Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.