+ Reply to Thread
Results 1 to 2 of 2

VBA to Change All Links Within a Workbook Based on Drop Down Selection

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    1

    Exclamation VBA to Change All Links Within a Workbook Based on Drop Down Selection

    Greetings Excel Users,

    My company use the box.com desktop system to store files, essentially meaning that every file on the box has a path:
    C:\Users\User1\Box Sync\Folder\File.xlsm

    I have a consolidation Worksheet which automatically updates using data from other worksheets.

    Now, this Worksheet works perfectly on my computer, but on any other computer in the network the links break because when another user opens the workbook the links remain as:
    C:\Users\User1\Box Sync\Folder\File.xlsm

    instead of:
    C:\Users\User2\Box Sync\Folder\File.xlsm

    My workaround solution for this problem was to write a macro which upon the user selecting their name from a dropdown list, a macro activated which used find and replace to edit the cells.

    Unfortunately this appears to not work for links and the links are resolutely refusing to change.

    Any help in this matter would be greatly appreciated.

    Thank you.

    David

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: VBA to Change All Links Within a Workbook Based on Drop Down Selection

    A file shared by others on the network shouldn't be stored on the C drive anyway. It needs to be in a common network location where everyone can get to it. You can resolve it by first opening all the workbooks. Then in each data source workbook, do a Save As to a network location. Any links to those workbooks will adjust to the new location.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

+ 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] Change column data based on drop down selection
    By jeremy9400 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-26-2014, 04:58 PM
  2. how to change data in a column based o drop down selection?
    By jeremy9400 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2014, 08:44 PM
  3. [SOLVED] Change color of cell based on drop down selection
    By madhatter40 in forum Excel General
    Replies: 3
    Last Post: 12-14-2012, 07:27 PM
  4. Row color change based on drop down selection
    By bigbluesfan22 in forum Excel General
    Replies: 7
    Last Post: 08-01-2012, 09:15 AM
  5. change cell values based on drop down box selection
    By Aniruddha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2006, 05:30 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