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.

Relative Pfadangabe

Empfohlene Antworten

Hallo,

ich habe ein Problem in Visual Basic und bräuchte mal eure Hilfe.

Folgender Code:

With ActiveSheet.QueryTables.Add(Connection:= _

"TEXT;" & app.Path & "\Logfile.log" _

, Destination:=Range("A1"))

.Name = "Logfile"

Folgender Fehler:

Laufzeitfehler '424'

Objekt erforderlich

Wo liegt die Ursache?

Mein Ziel ist es die Datei Logfile.log in eine Excel Liste mittels einem Makro zu importieren. Die beiden Dateien liegen in einem Ordner. Dieser Ordner soll aber egal wo liegen können, so dass ich ihn hinterher bei Bedarf verschieben kann ohne den Code zu ändern. Wie mache ich das?

Gruß,

Micha.

P.S.: Anfänger in Sachen VB

Original geschrieben von PelzigesTierchen

app.Path

... würde mal meinen dass es daran liegt...

app gibts nur in VB, nicht in VBA

Erstmal danke.

Gut wie sieht den ne Ersatzlösung aus?

Muss ja irgendwie machbar sein oder?

Original geschrieben von PelzigesTierchen

Erstmal danke.

Gut wie sieht den ne Ersatzlösung aus?

Muss ja irgendwie machbar sein oder?

MsgBox Excel.ActiveWorkbook.Path

damit bekommst du den Pfad deines Aktuellen Workbooks... und da beide im selben ordner liegen... ;)

Du sprichst in Rätseln ;) Aber es funktioniert :D

Habs nun.

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.