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-Prozedur zum Vergleich der Excel Dateien

Empfohlene Antworten

Veröffentlicht

Hallo Zusammen,

Ich habe eine Tabelle in Excelformat mit den Kundennummer, Kundenname, Adresse, Telefonnummer, E-Mail.

Nun wird die Tabelle von den Kollegen immer wieder aktualisiert und mir wieder zugeschickt.

Ich möchte die aktualisierte Liste mit meiner Liste vergleichen können um die Änderungen durchführen.

Kann jemand mir dabei helfen? :confused:

  • 2 Wochen später...

Attribute VB_Name = "Tabellenvergleich"

Option Explicit

Function vergleich_Exporttabellen()

Dim index, index2, index3, isExist

Dim wi_Event_Id, FM_Event_ID, Semester

Dim Titel, Bemerkung, Dozenten

Dim Lehrstuhl, Lst_DIAPERS_ID, wi_Buchungs_ID

Dim FM_Buchungs_ID, VIBeginn, VIEnde

Dim Wiederholung, Einzeltermin, Wochentag

index3 = 1

For index = 1 To 3130

isExist = False

Worksheets(1).Activate

wi_Event_Id = Cells(index, 1)

FM_Event_ID = Cells(index, 2)

Semester = Cells(index, 3)

Titel = Cells(index, 4)

Bemerkung = Cells(index, 5)

Dozenten = Cells(index, 6)

Lehrstuhl = Cells(index, 7)

Lst_DIAPERS_ID = Cells(index, 8)

wi_Buchungs_ID = Cells(index, 9)

FM_Buchungs_ID = Cells(index, 10)

VIBeginn = Cells(index, 11)

VIEnde = Cells(index, 12)

Wiederholung = Cells(index, 13)

Einzeltermin = Cells(index, 14)

Wochentag = Cells(index, 15)

Worksheets(2).Activate

For index2 = 1 To 2550

If FM_Buchungs_ID = Cells(index2, 10) Then

isExist = True

Exit For

End If

Next

If Not isExist Then

Worksheets(3).Activate

Cells(index3, 1) = wi_Event_Id

Cells(index3, 2) = FM_Event_ID

Cells(index3, 3) = Semester

Cells(index3, 4) = Titel

Cells(index3, 5) = Bemerkung

Cells(index3, 6) = Dozenten

Cells(index3, 7) = Lehrstuhl

Cells(index3, 8) = Lst_DIAPERS_ID

Cells(index3, 9) = wi_Buchungs_ID

Cells(index3, 10) = FM_Buchungs_ID

Cells(index3, 11) = VIBeginn

Cells(index3, 12) = VIEnde

Cells(index3, 13) = Wiederholung

Cells(index3, 14) = Einzeltermin

Cells(index3, 15) = Wochentag

index3 = index3 + 1

End If

Next

End Function

  • 2 Wochen später...

Super! Vielen Dank.

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.