Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments

Diskutiere und helfe bei Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments im Bereich Microsoft Office im Windows Info bei einer Lösung; Since Version 1906 of Excel 365 clicking on Shapes that have their .OnAction property set to a callback procedure with arguments will do no callback to... Dieses Thema im Forum "Microsoft Office" wurde erstellt von XLDev3000, 27. Juni 2019.

  1. XLDev3000
    XLDev3000 Gast

    Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments


    Since Version 1906 of Excel 365 clicking on Shapes that have their .OnAction property set to a callback procedure with arguments will do no callback to the procedure but will show an ominous error message instead.

    This problem has been reproduced by multiple customers of mine. Reverting Office to the last build of version 1905 seems to fix the issue.

    I did some testing and realized that callbacks with no arguments will work, but the ones with arguments are broken.

    I did not test if the .OnAction properties of other classes like CommandBarControls and Form Controls are affected as well, but I assume they are.

    I added a screenshot of the (german) event log error description and some testing code that exemplifies the problem.


    [​IMG]

    'Copy the following code into an Excel VBA module called 'modTest'.
    'Run the CreateTestSheet() sub in order to create the test sheet.
    'On the sheet there will be 3 shapes. Click on each once to see which callbacks work and which don't.

    Option Explicit

    Private Sub CreateTestSheet()
    'will create a sheet with 3 shapes that exemplify the problem
    'all the callbacks worked in Excel prior to XL365 Version 1906, but the ones with arguments are broken now

    On Error GoTo err

    Dim cSheet As Excel.Worksheet
    Dim strSheetName As String
    Dim cShape As Excel.Shape

    strSheetName = "bug1906"

    Application.DisplayAlerts = False
    On Error Resume Next
    Set cSheet = ThisWorkbook.Worksheets(strSheetName)
    cSheet.Delete
    On Error GoTo err
    Application.DisplayAlerts = True

    Set cSheet = ThisWorkbook.Worksheets.Add
    cSheet.Name = strSheetName
    cSheet.Activate

    '1 does work, due to no arguments being used
    Set cShape = cSheet.Shapes.AddShape(msoShapeRectangle, 30, 20, 100, 50)
    With cShape
    cShape.TextFrame2.TextRange.Text = "1: works"
    .OnAction = "'modTest.XlControlCallback1'"
    End With

    '2: the most simple example of what doesn't work
    Set cShape = cSheet.Shapes.AddShape(msoShapeRectangle, 30, 90, 100, 50)
    With cShape
    cShape.TextFrame2.TextRange.Text = "2: does not work"
    .OnAction = "'modTest.XlControlCallback2 """ & "str1" & """'"
    End With

    '3: a more complex example of what doesn't work
    Set cShape = cSheet.Shapes.AddShape(msoShapeRectangle, 30, 160, 100, 50)
    With cShape
    cShape.TextFrame2.TextRange.Text = "3: does not work either"
    .OnAction = "'modTest.XlControlCallback3 """ & 1 & """,""" & "str1" & """,""" & "opt str2" & """'"
    End With

    Exit Sub
    err:
    Debug.Print err.Number, err.Description
    End Sub

    Public Sub XlControlCallback1()

    On Error GoTo err

    Debug.Print "XlControlCallback1"

    Exit Sub
    err:
    Debug.Print err.Number, err.Description
    End Sub

    Public Sub XlControlCallback2(strId1 As String)

    On Error GoTo err

    Debug.Print "XlControlCallback2", strId1

    Exit Sub
    err:
    Debug.Print err.Number, err.Description
    End Sub

    Public Sub XlControlCallback3(lngType As Long, strId1 As String, Optional strId2 As String)

    On Error GoTo err

    Debug.Print "XlControlCallback3", lngType, strId1, strId2

    Exit Sub
    err:
    Debug.Print err.Number, err.Description
    End Sub
     
  2. XLDev3000 Win User

    Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments

    It seems Microsoft fixed the issue with their update Version 1906 (Build 11727.20224) of June 26th 2019.

    https://docs.microsoft.com/en-us/officeupdates/monthly-channel-2019#version-1906-june-27

    So if you encounter this issue, be sure that you are patched to this version or later.
  3. M0ritz Win User

    HTML Email wird nicht angezeigt

    Guten Morgen,

    leider hat diese Lösung nicht funktioniert.

    Windows Version: 1803 / Build 17134.885

    Outlook Version: Office 365 ProPlus / 1906 (Build 11727.20244)
  4. peter schorn Win User

    Funktion MultilevelListGallery überschreiben

    Folgenden xml-Code habe ich als Ribbon eingefügt (CustomUIEditor)

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

    <commands>

    <command idMso="MultilevelListGallery" onAction="setList" />

    </commands>

    <ribbon startFromScratch="false">

    </ribbon>

    </customUI>

    Folgenden VBA-Code (Modul) soll die Funktion abfangen:

    'Callback for MultilevelListGallery onAction

    Sub setList(control As IRibbonControl, ByRef cancelDefault)

    MsgBox "List"

    End Sub

    Diese Code funktioniert für die Überschreibung der Bullet-Icon-Funktion:

    Public Sub FormatBulletDefault()

    'übersteuern des icons aufzählung

    MsgBox "FormatBulletDefault"

    End Sub

    Für die direkte Überschreibung als "Function" habe ich keinen Funktionsname gefunden.

    Peter
  5. WernerReil Win User

    Outllok 365 unter Windows 10 - keine automatische Auflösung von Hyperlinks mehr ab 25.06.2019

    Ergänzung:

    Der Verdacht, dass das fehlerhafte Darstellen von Mails mit dem Update auf Version 1906 zusammenhängt, hat sich gestern für mich bestätigt.

    Ich hatte auf meinem Zweitrechner noch die Version 1905 von Outlook laufen. Alle E-Mails - die alten und auch die neu eingegangenen wurde richtig (im HTML-Format) dargestellt. Anschließend aktualisierte ich Office 365 auf die Version 1906. Danach wurden
    alle E-Mails (alle alten und die neuen) nur noch im Nur-Text-Format dargestellt, d. h. integrierte Grafiken, Formatierungen usw. wurden nicht dargestellt. ZU erwähnen ist auch noch, dass das Feld, über das man das Herunterladen von Bildern erlauben konnte
    auch nicht mehr angezeigt wird.

    Es bleibt zu hoffen, dass dieser Fehler im Update schnell behoben wird.
  6. Barbara Henhapl Win User

    Project - VBA Automatisierungsfehler

    Hallo,

    dann vermute ich einen Fehler im "onAction". Gibt es einen Fehler mit dem Originalcode (also ohne onAction)?

    Wie sieht der Gesamtcode aus, der den Fehler liefert? Ohne genaue Angaben fällt sowohl der Repro-Versuch als auch ein Lösungsvorschlag schwer.

    Viele Grüße

    Barbara
  7. User Advert


    Hi,

    willkommen im Windows Forum!
Thema:

Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments - Microsoft Office

Die Seite wird geladen...

Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments - Similar Threads - Excel 365 1906

Forum Datum

"zu viele Argumente für diese Funktion"-Excel

"zu viele Argumente für diese Funktion"-Excel: Hallo,ich versuche momentan eine Wenn-Funktion als eine Art Checkliste zu hinterlegen. Leider wird mir der oben genannte Fehler angezeigt. Kennt evtl. Jemand eine Möglichkeit diese Fehlermeldung...
Microsoft Office 15. Mai 2023

Excel-Bug bei Addition

Excel-Bug bei Addition: Hallo Community, ich habe festgestellt, dass Excel in bestimmten Situationen falsch addiert. Ausgangswerte, die zwei Nachkommastellen haben, werden als Summe mit erheblich mehr Nachkommastellen...
Microsoft Office 21. Oktober 2020

Bugs in Excel - Version 2001 build 12430.20050

Bugs in Excel - Version 2001 build 12430.20050: Excel hat vermutlich einige Bugs in der aktuellsten Version: Excel stürzt ab, wenn man die Daten als Tabelle formatieren möchte Strg + T -> Absturz Beim "Speichern unter" kann man kein Pfad...
Microsoft Office 16. Januar 2020

Zu viele Argumente - Excel

Zu viele Argumente - Excel: Hallo, ich versuche momentan eine Wenn-Dann-Funktion zu hinterlegen. Allerdings wird mir angezeigt, dass ich zu viele Argumente habe. Wie kann ich dieses Problem beheben? Vielen Dank im Voraus...
Microsoft Office 7. Mai 2019

Problems with Excel (Office 365)

Problems with Excel (Office 365): I am working for a long time with Excel in the context of my scientific work and have a lot of experience with diagrams. Since some time I am also succesfully working with Office 365. Some days...
Microsoft Office 26. April 2019

EXCEL version 1902 Bug

EXCEL version 1902 Bug: Error on assigning string-variable bigger then 255 characters to Data Validation Formula1 in Excel 365
Microsoft Office 14. März 2019

Office 365 Bug? (Excel)

Office 365 Bug? (Excel): Hey, ich hab ein Problem und zwar entsteht dieses wenn ich z.B. auf dem Desktop eine Exceldatei anlege und diese dann öffne, wird mir nicht Tabelle1 angezeigt sondern: [IMG] und wenn ich dann...
Microsoft Office 18. August 2017
Excel 365 version 1906 introduces bug in .OnAction callbacks with arguments 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.