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.

Verzeichnis rausbekommen

Empfohlene Antworten

Hi,

gibt es eine Möglichkeit per VBA den aktuellen Pfad meiner geöffneten (Excel-)Datei rauszubekommen.

Den Pfad will ich dann in einer Zelle ausgebenlassen und von dort aus damit (weiter-)arbeiten können.

Dim das

das = Excel.ActiveWorkbook.FullNameURLEncoded

?

Alles klar, genau das meinte ich.

Kann ich auch Verzeichnis und Dateiname getrennt voneinander ausgeben lassen? So dass ich dann Verzeichnis in einer Variablen und Dateinamen in einer anderen stehen hab.

dim dies

dies = split(das,"\")

???

split ist da sinnlos. :cool:

?Excel.ActiveWorkbook.FullNameURLEncoded

C:\Dokumente und Einstellungen\schasquastl\Desktop\Mappe12.xls

?Mid(Excel.ActiveWorkbook.FullNameURLEncoded, InStrRev(Excel.ActiveWorkbook.FullNameURLEncoded, "\") + 1)

Mappe12.xls

?Left(Excel.ActiveWorkbook.FullNameURLEncoded, InStrRev(Excel.ActiveWorkbook.FullNameURLEncoded, "\"))

C:\Dokumente und Einstellungen\schasquastl\Desktop\

s'Amstel

Alternativ funktioniert auch:

Excel.ActiveWorkbook.Path

Finde ich schöner ;)

stimmt ist am schönsten :D

ajo split geht schon ^^ der letzte array ist der dateiname, der restliche der pfad :bimei:

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.