Bitte um Bestätigung eines Bugs in xl365
23.02.2018 07:17:11
lupo1
Sub MinimalabstandZuA1Bug() 'Konstruktionsmakro für eine Tabelle
Workbooks.Add xlWorksheet
[A1] = 100: [B2:D2] = Array(1, 3, 197)
[B2:D3].FormatConditions.Add Type:=2, Formula1:="=MIN(ABS($B2:$D2-$A$1))=ABS(B2-$A$1)"
[B2:D3].FormatConditions(1).Font.ColorIndex = 3
End Sub
Man muss sich dort (in xl365) behelfen mit einer benF:Sub MinimalabstandZuA1Korrekt() 'Konstruktionsmakro für eine Tabelle
Workbooks.Add xlWorksheet
[A1] = 100: [B2:D2] = Array(1, 3, 197)
Names.Add Name:="MinAbstd", RefersToR1C1:="=MIN(ABS(RC2:RC4-R1C1))=ABS(RC-R1C1)"
[B2:D3].FormatConditions.Add Type:=2, Formula1:="=MinAbstd"
[B2:D3].FormatConditions(1).Font.ColorIndex = 3
End Sub
Der Bug ist zweischichtig:Die bedF-Formel passt sich in anderen Zellen des Bereichs nicht an. Das gilt in allen Fällen optisch, also auch schon bei manueller Eingabe, statt über das o.g. erste Makro. Über Makro versagt diese bedF zusätzlich auch noch inhaltlich. Öffnet man die Datei in einer anderen Version (getestet nur mit Excel Online), und kehrt dann zu xl365 zurück, ist der inhaltliche Fehler beseitigt. Der optische bleibt. In Excel Online stimmt hingegen alles.
In
http://www.ms-office-forum.net/forum/showthread.php?t=349849
http://office-loesung.de/p/viewtopic.php?f=166&t=759218#p3123635
habe ich schon um Nachprüfung gebeten, noch ohne Feedback.
DerHoepp (in office-loesung) hat es schon bei github gemeldet.