+ Reply to Thread
Results 1 to 7 of 7

Changing Global References to Local

  1. #1
    Registered User
    Join Date
    07-08-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Talking Changing Global References to Local

    Hi Guys,

    I'm currently creating a schedule that has a workbook that references many other different workbooks...The only issue is that this schedule is needed for many projects, so I copy & paste a 'master' root folder that contains all the workbooks to a new file location on the computer to use for that specific project.

    Each time I do this the cell references still use the original master workbooks, because they use absolute references opposed to local ones. And I haven't figured out how to have them automatically update so they don't use :U\\folder1\folder2\etc... and instead use /folder2/folder1\folderA\etc...

    Hyperlinks seem to update fine, it's just the references in the cells that I can't get to change.

    Thanks in advance!

    Alistair

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: Changing Global References to Local

    You could use Find & Replace (CTRL-H) to change the original folder to the new one.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-08-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Changing Global References to Local

    Hi Pete,

    Cheers for getting back to me, unfortunately there are many different references I will have to change, so 'Find & Replace' won't be that feasible. (unless I want to spend a few hours every time we get a new project!). Please see attached for an example of the kind of path I have at the moment:

    Capture.PNG

    and the kind of reference I would prefer to have:

    Capture.PNG

    When I use what I would've thought to be a way round it, the cell kicks out a #REF.

    Am I getting the syntax wrong or something?

    Cheers,

    Alistair

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: Changing Global References to Local

    I can't view .png files on this forum due to software incompatibilities with some browsers, so your response doesn't mean anything to me.

    Pete

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Changing Global References to Local

    Have you tried using the 'Edit Links' option (in the 'Connections' section of the 'Data' tab)? That should allow you to change all references to one file, to another file.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  6. #6
    Registered User
    Join Date
    07-08-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Changing Global References to Local

    Pete,

    Apologies for that, please find attached the two files I attached previously:

    Kind of reference I have now:

    Capture.JPG

    The kind of reference I would like:

    Capture 2.JPG

    Aardingspook, thanks for the suggestion, you're right, I could do that. However (if possible) I would like the links to update automatically every time I copy and paste this file from my 'master file location' to a new location on the computer/drive.

    If there's a way to keep a file link, using the file folder location as the root folder instead of the drive. i.e:

    folder3/folder2/foldera\folderb

    instead of:

    U:\folder1\folder2\foldera\folder

    Thanks in advance,

    Alistair

  7. #7
    Registered User
    Join Date
    07-08-2016
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    5

    Re: Changing Global References to Local

    Bump......

+ 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] Global, public, local variable useage
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2013, 10:09 PM
  2. Solver: global or local max?
    By Ipinho100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-30-2011, 08:11 AM
  3. How to make a global change to many references
    By ephriam in forum Excel General
    Replies: 2
    Last Post: 08-13-2009, 10:13 AM
  4. How to copy worksheet with local name references
    By Stefan.hagnesten in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2009, 11:56 AM
  5. Application.EnableEvents ... Is Local or Global ?
    By monir in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2006, 04:45 PM
  6. [SOLVED] How to create local names (vs. global names)
    By Thomas Staudte in forum Excel General
    Replies: 5
    Last Post: 02-13-2006, 03:10 PM
  7. [SOLVED] global or local intializing ??
    By furbiuzzu in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-02-2005, 02:05 PM
  8. [SOLVED] Extracting 'exact' local references from formula
    By Ant Bewes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2005, 11:06 AM

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