ich möchte in einem Frame jedes Label abfragen, ob es den Focus hat, und wenn ja die Schriftfarbe verändern.
Dim lbl As MSForms.Label
For Each lbl In Frame3.Controls
If lbl = ActiveControl Then
lbl.ForeColor = RGB(255, 255, 255)
MsgBox "" & ActiveControl.Name & ""
End If
Next
Die Syntax bei lbl = ActiveControl stimmt aber nicht.
Kann mir bitte jemand sagen, wie es richtig heißt?
Vielen Dank im voraus
Michael