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.

Suchabfrage mit Makro

Empfohlene Antworten

Hi,

ich hab mal ne frage bzw nen problem^^

Also ich möcht ne Suchabfrage in Excel über ein Makro machen..ok soweit kein problem hab auch schon den Quellcode:


Sub Suchen()

	For Each Zelle In Range("C6:FA6")

	 If IsNumeric(Zelle.Value) Then

 	  If Zelle.Value Like "208*" Then

	   .......

	  End If

	 End If

	Next

End Sub()

So nun Funktinoiert das Suchen. Jetzt möcht ich da wo [...] steht folgendes Ereignis haben: Also in der Zeile wo er ein Feld findet wo die 208 drin vorkommt zb: E12, das er die ganze Spalte, also E, kopiert und die dan in ein anderes Tabellenblatt einfügt. Funktioniert sowas?

für hilfe währ ich sehr dankbar...im moment komm ich eingfach net weiter :(

mfg

Dieser Code kopiert die gesamte Spalte C in das 2. Tabellenblatt.

Über die Eigenschaften von Zelle bekommst du die Spalte raus.


    Columns("C:C").Select              'Spalte markieren

    Selection.Copy                     'Spalte kopieren

    Sheets("Tabelle2").Select          'anderes Blatt auswählen

    Columns("C:C").Select

    ActiveSheet.Paste                  'markierte Spalte einfügen

Ok hat wunderbar funktioniert

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.