+ Reply to Thread
Results 1 to 3 of 3

Change file path name in VBA code based on files location

  1. #1
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Change file path name in VBA code based on files location

    Hi all,
    I have the following code written but I'm wondering if it's possible to modify this to change the red line to update to the path that the workbook is saved in? Meaning that User1\Folder1\ would change but [Workbook1.xlsm]Sheet1'E1 would always be the same. Thanks for any help you can give!


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Change file path name in VBA code based on files location

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-25-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Change file path name in VBA code based on files location

    Thanks Kenneth,

    Worked great.

+ 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. List of Search file location path
    By mohan.r1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2013, 06:01 PM
  2. VBA Code to Request a Password When Path (File Location) Changes
    By akynyemi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2013, 07:17 PM
  3. Replies: 5
    Last Post: 09-29-2012, 12:40 PM
  4. consolidating excel files into one file not using hard code of folder path
    By rrakkki in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2011, 09:05 AM
  5. Import txt files but not being forced to select them from one location (path)
    By superbob in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-04-2011, 06:07 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