+ Reply to Thread
Results 1 to 3 of 3

Using Workbook.Open to open an excel file with a variable path

  1. #1
    Registered User
    Join Date
    02-21-2019
    Location
    STL
    MS-Off Ver
    2013
    Posts
    10

    Using Workbook.Open to open an excel file with a variable path

    I have a sub to open several workbooks, copy/paste data, and then close them. The files are on a shared folder and I want anyone on my team to be able to run this macro with little to no prompts. If possible I'd like to avoid using the GetOpenFilename Method. Is there some code that will allow the macro to open these files regardless of where the shared folder is mapped to?

    Example
    Please Login or Register  to view this content.
    Last edited by walt737; 02-27-2019 at 06:39 AM. Reason: Additional Info

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: Using Workbook.Open to open an excel file with a variable path

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-21-2019
    Location
    STL
    MS-Off Ver
    2013
    Posts
    10

    Re: Using Workbook.Open to open an excel file with a variable path

    Thanks! Works perfectly.

+ 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. [SOLVED] Open workbook if not already open then close same file if was not already open
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2018, 02:50 AM
  2. VBA open file with variable name with a variable file path.
    By BLTnoBacon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2018, 09:19 PM
  3. Macro to open specified file path with variable date
    By nelsonr15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2013, 06:57 PM
  4. [SOLVED] I want to set ThisWorkbook.Path inside a variable in order to open a file.
    By grid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 11:07 AM
  5. How to copy values from one OPEN workbook (with variable file name) to another
    By Kitko in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-25-2013, 01:50 PM
  6. Macro to open a workbook from an unknown file path
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-03-2012, 02:42 AM
  7. Open Word file form Excel using VBA and file path
    By psychoPETE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-05-2010, 07:02 PM

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