Obtionsfeld: Farbwechsel bei Aktivierung 09.03.2007 20:37:42 Ta Kann das Optionsfeld (Forumlar) so formatiert werden, dass bei Aktivierung die Farbe von beispielsweise grün auf rot wechselt? Besten Dank für jede Hilfe.
AW: Obtionsfeld: Farbwechsel bei Aktivierung 09.03.2007 21:17:00 Josef Hallo ?, weise jedem Optionsbutton/Checkbox folgendes Makro zu. ' **********************************************************************' Modul: Modul1 Typ: Allgemeines Modul' **********************************************************************Option ExplicitSub ColorShapes()Dim objShp As ShapeOn Error GoTo ErrExitGMSFor Each objShp In ActiveSheet.Shapes objShp.Fill.Visible = msoTrue If Left(objShp.Name, 6) = "Option" Or Left(objShp.Name, 5) = "Check" Then objShp.Fill.ForeColor.RGB = IIf(objShp.DrawingObject.Value = 1, RGB(0, 255, 0), RGB(255, 0, 0)) End IfNextErrExit:GMS 0Set objShp = NothingEnd SubSub GMS(Optional ByVal Modus As Integer = 1)With Application .ScreenUpdating = Modus <> 1 .EnableEvents = Modus <> 1 .DisplayAlerts = Modus <> 1 .Calculation = IIf(Modus = 1, -4135, -4105) .Cursor = IIf(Modus = 1, 2, -4143)End WithEnd Sub Gruß Sepp Anzeige
AW: Obtionsfeld: Farbwechsel bei Aktivierung 10.03.2007 18:36:18 Ta Super, besten Dank. Hat bestens geklappt!