+ Reply to Thread
Results 1 to 3 of 3

Dynamic file names

  1. #1
    Registered User
    Join Date
    07-29-2021
    Location
    Durham, England
    MS-Off Ver
    office 360
    Posts
    2

    Dynamic file names

    Hi all

    Is there a way to create a file name and path dynamically e.g

    common path c:\downloads\

    the filename can be test1.xlsx or test2.xlsx or any other filename

    I would like to concat a file name in a cell that I only have to reference that cell for the name

    ='path c:\downloads\[E3]&".xlsx"sheet'!B2

    and in cell E3 will be test1 or test2

    Hope this makes sense

    Kind regards

    Mrbronz61
    Last edited by mrbronz61; 05-27-2022 at 12:44 PM. Reason: mistake

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,693

    Re: Dynamic file names

    Yes but if the referenced file is not open the formula will return an error.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-29-2021
    Location
    Durham, England
    MS-Off Ver
    office 360
    Posts
    2
    Quote Originally Posted by 6StringJazzer View Post
    Yes but if the referenced file is not open the formula will return an error.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    So how do I do it with a closed file

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 03-19-2022, 12:15 PM
  2. Dynamic File names and Sheet Names
    By sriley5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2017, 10:39 PM
  3. [SOLVED] List in dynamic combobox which shows open workbook names and workshee names
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2016, 06:09 AM
  4. [SOLVED] Dynamic Names with Dynamic Range
    By turist in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2015, 06:46 PM
  5. Replies: 10
    Last Post: 10-09-2014, 06:20 PM
  6. Creating dynamic userform based on several file names and creating chart overlays
    By Thorn23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2014, 12:09 PM
  7. Replies: 5
    Last Post: 05-26-2011, 01:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1