Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Guten Tag,

ich hab in einer Zelle eine wenn, dann Abfrage. wenn etwas zutrifft dann wird einer Hyperlink ausgegeben und ansonsten nichts.

Nun wollte ich wissen wie kann ich des machen das ,wenn etwas zutrifft ein Button in der Zelle angezeigt wird. Über Tipps freue ich mich sehr.

Hi Greenhardy,

ich würde das so machen:

zuerst erstellst du einen Button, beim Öffnen der Excelmappe prüfst du dann ob die Bedingung zur Anzeige des Buttons erfüllt ist, wenn ja setzt du die Sichtbarkeit des Buttons auf wahr, wenn nein eben auf falsch:

Private Sub Workbook_Open()

If Range("A1").Value = "10" Then

    Sheets("Tabelle1").CommandButton1.Visible = True

Else

    Sheets("Tabelle1").CommandButton1.Visible = False

End If

End Sub
In diesem Bsp. wird am Anfang geprüft ob A1 = 10. Dann fügst du noch bei dem Change Event des Sheets eine ähnliche Abfrage hinzu:
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$A$1" And Target.Value = "10" Then

    Sheets("Tabelle1").CommandButton1.Visible = True

Else

    Sheets("Tabelle1").CommandButton1.Visible = False

End If

End Sub

So das sollte eigentlich funktionieren.

mfg

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.