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.

Hilfe Excel VBA Makro

Empfohlene Antworten

Veröffentlicht

Wer hilft? Benötige ein MAkro das die ersten beiden Spalten in einem Excelsheet vergleicht und den doppelten Datensatz löscht.

Das gefundene Makro unten vergleicht nur auf die erste Spalte. Wie macht man das wenn noch eine Zelle verglichen werden soll? Hab gar keine Ahnung.

Hatte es mit noch einer If schleife versucht, aber da bin ich in die Unendlichkeit abgeschweift wenn Ihr versteht....


Sub Löschen()

'

' Löschen Makro

' Makro am 27.04.01 von U405565 aufgezeichnet

'


'

While ActiveCell.Offset(1, 0).Value <> Empty

    If ActiveCell.Offset(1, 0).Value = ActiveCell.Value Then

        ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Select

        Selection.Delete Shift:=xlUp

        ActiveCell.Offset(-1, 0).Range("A1").Select

    End If

    Else: If ActiveCell.Offset(1, 0).Value <> ActiveCell.Value Then ActiveCell.Offset(1, 0).Range("A1").Select

    End If

Wend

Also ich hab mir das ganze so vorgestellt:

Sub Löschen()

Dim r As Integer, r2 As Integer

Dim c As Integer, c2 As Integer

r = 1

c = 1

r2 = 1

c2 = 2

Do While r <> 10

For r2 = 1 To 10

If Tabelle1.Cells(r, c) = Tabelle1.Cells(r2, c2) Then

Tabelle1.Cells(r2, c2) = ""

Tabelle1.Cells(r, c) = ""

End If

Next r2

r = r + 1

Loop

End Sub

danke...

leider etwas zu spät - hab das jetzt mit excel funktionen und per hand gemacht....

lol

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.