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.

Bei kopieren und einfügen nur Text einfügen ohne Formel

Empfohlene Antworten

Veröffentlicht

HAllo zusammen,

ich habe hier ein kleines Problem mit meinem Code.

Der Code soll alle Excel dateien in diesem Ordner durchsuchen und aus dem ersten Tabellenblatt die Informationen von Zeile 2 bis 40 kopieren und in eine neue Liste einfügen.

So nun kopiert mir der Code alles und fügt es auch ein aber nur als Formel mit Verlinkung auf die Orginal Datei.

Wie könnte man den Code umschreiben damit ich in der Übersicht nur einen Text in jeder Zelle habe ohne die Formel auf die Orgninal datei.

Sub uebersicht()

Dim datei As String, pfad As String, Zzeile As Long, i%, suche, AZelle As Range

Dim quelle As Object

pfad = "\\Server\Testordner\"

datei = Dir(pfad & "*.xls")

Application.ScreenUpdating = False

Zzeile = ThisWorkbook.Sheets(1).Cells(Rows.Count, 1).End(xlUp).Row + 1

Do While Not datei = ""

Set quelle = Workbooks.Open(pfad & datei)


For i = 2 To 40

    suche = quelle.Sheets(1).Cells(i, 1).Value

    With ThisWorkbook.Sheets(1).Columns(1)

        Set AZelle = .Find(suche, LookAt:=xlWhole, LookIn:=xlValues)

        If AZelle Is Nothing Then

            quelle.Sheets(1).Rows(i).Copy Destination:=.Cells(Zzeile, 1)

            Zzeile = Zzeile + 1

        End If

    End With

Next i

quelle.Close

datei = Dir

DoEvents

Loop

Application.ScreenUpdating = True

Danke Euch schon einmal

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.