path/filename

  1. D

    Include Path's with more than 260 characters

    Hi, A couple of days ago I found a VBA Macro to gather a list of all Folders, Subfolders and Files in a directory, which works just fine (VBA to List all Folders, Subfolders and files in a directory). However, when I try to use it now on a different folder I only receive the main folder name...
  2. L

    Save as, to save to the same folder with vba?

    Hi all, I have the following code, but this saves my workbook to C:/Documents.. is there a way to make it save to the same folder, my original file is in? I have this Workbook full of macros and code which allows data manipulation efficiently sort of a 'Raw data converter', and this last macro...
  3. C

    File and pathname with spaces

    Below is an extract of some code that fails because there are spaces in the pathname and the filename (e.g. "AR timesheet.xlsm". I have tried various options such as Chr(34), """"" and %20 but can't seem to get it to work. If I take out the spaces in the path and filename then the code works...
  4. J

    get current workbook path for Application.GetSaveAsFilename vba

    I have code below to save my workbook file as WriteResPassword, but is there any way to get current workbook's path in the interface from Application.GetSaveAsFilename? For now saving as interface displays document folder, so it requires 5-10 more clicks to get where I wanted. Sub...
  5. W

    Good practice for workbook referencing and storing files

    Hello! I'm pretty new to VBA and was hoping someone could give me good practices for how to reference workbooks. My main concern is that if I write a lot of code that references different workbooks with a full file name path, if I were to have to move these workbooks to another folder, I would...
  6. D

    Change connection source path/filename

    Hi guys, I am trying to create a macro that change the connection direction after searching for a file that starts with "filename", for example, and the xtension for it is .xlsx and also the path will change because it goes into the C:\Users"username"\SharePoint\ folder and the username is...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top