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.

String öffnen?

Empfohlene Antworten

bei der vorletzten zeile, findet er die datei nicht, was kann ich tun?

str1 = "PMD_2002_KW" 'erster Teil des Dateinamens

str2 = "_IN.xls" 'zweiter Teil des Dateinamens

datei1 = str1 + Format(Date, "ww") + str2 'Dateiname wird aus dem 1. & 2. Teil und der KW zusammengesetzt

datei2 = str1 + CStr(CInt(Format(Date, "ww")) - 1) + str2

quelle = "D:\wwwroot\Stueckzahlen\DATEN02\"

With Application.FileSearch 'Dateien suchen...

.NewSearch

.LookIn = quelle '... im Ordner Quelle

If .Execute() > 0 Then 'wenn mehr als 0 Dateien gefunden..

MsgBox "Es wurde(n) " & .FoundFiles.Count & " Datei(en) gefunden." 'ausgabe der Messagebox

'For i = 1 To .FoundFiles.Count 'Schleife wird so oft wiederholt wie dateien da sind

quelle = "D:\wwwroot\Stueckzahlen\DATEN02\"

.LookIn = quelle

Workbooks.Open datei1

evt solltest du schreiben

Workbooks.Open quelle + datei1 ?

dann hast du definitiv auch die Pfadangabe...

Uruz

P.S.: k. A. was das fuer eine Programmiersprache sein soll... aber ich denke mal, dass das ein logischer Fehler sein koennte...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.