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.

Vba

Empfohlene Antworten

Hi Leute

Ich habe ein kleines Problem!

Ich gebe euch mal den kleinen Quelltext

If

TextBox9 = "" Or TextBox11 = "" _

Or TextBox12 = "" Or TextBox13 = "" _

Then

Ich will, dass wenn Textbox9 oder 11 oder 12 oder 13 leer sind, das er dann das Then ausführt.

Aber irgendwie führt er das ganze aus als wäre das or ein und!

Also nur wenn Textbox9 und 11 und 12 und 13 leer sind dann führt er das aus. (Das soll er aber nicht)

Wie ist der Befehl in VBA für ein oder:( :confused: :confused: :confused:

Der logische Operator ODER wir in VBA durch den Operator "OR" dargestellt, folglich ist Deine Bedingung richtig, es sei denn Du meinst das exklusive ODER -> XOR.

Gruß

JayN

Der hat bei mir aber das Or wie ein Und behandelt.

Ich habe es jetzt mit <> Operator gelöst.

Ich verstehe aber trotzdem nicht warum das nicht mit Or funktioniert hat

Jo das kann natürlich auch sein :) :) :)

Aber jetzt geht es zum Glück

Hallo,

du musst die zu überprüfenden Statements in Klammern setzen,

so z.b:

if (a="") or (b="") then

msgbox "a oder b enthalten keine Zeichen"

end if

Achso!!!

Ja jetzt geht es auch mit or Danke ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.