+ Reply to Thread
Results 1 to 3 of 3

Automatically replace sourcefile

  1. #1
    Registered User
    Join Date
    04-08-2020
    Location
    Netherlands
    MS-Off Ver
    excel 365
    Posts
    4

    Automatically replace sourcefile

    Dear Exel forum,

    I'm currently working in a large excelfile in which I have many columns of information which are linked to other spreadsheets which are CSV exports from our accounting software program (Minox).

    Now the thing is that many of these require monthly updates which I now have to do manually by Replacing the source CSV document name in many different functions. This is both time consuming and rather complex since the functions have up to 5 references to external sheets. As a result, I have been trying to circumvent this inconvenience by replacing the old file by the new one with exactly the same name and location. Unfortunately, this still gives an "reference" error and means many manual fixes.

    So the question is, is there any way to have excel automatically update the functions by replacing a source file?

    Thank you for your help!

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Automatically replace sourcefile

    My solution was always to copy the csv files into the workbook, each in a different worksheet. (I did this via VBA). So they were not external anymore.
    The formula's referring to these sheets stayed the same. And I used a lot of Named Ranges; for each Sheet; for almost each relevant Column, just to make visible what I was doing. And if necessary, you can hide those sheets.

    Cheers
    Erwin
    Last edited by Eastw00d; 04-24-2020 at 07:00 AM. Reason: typo
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  3. #3
    Registered User
    Join Date
    04-08-2020
    Location
    Netherlands
    MS-Off Ver
    excel 365
    Posts
    4

    Re: Automatically replace sourcefile

    Quote Originally Posted by Eastw00d View Post
    My solution was always to copy the csv files into the workbook, each in a different worksheet. (I did this via VBA). So the were not external anymore.
    The formula's referring to these sheets stayed the same. And I used a lot of Named Ranges; for each Sheet; for almost each relevant Column, just to make visible what I was doing. And if necessary, you can hide those sheets.

    Cheers
    Erwin
    Thank you for the helpful solution! It would require quite a major redesign but at least it would be a one-off redesign and easy for more inexperienced co-workers to perform updates afterwards.
    If anyone has another solution, I'm all ears.

+ 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. Automatically replace
    By Ceilingwalker in forum Excel General
    Replies: 9
    Last Post: 11-01-2017, 08:05 AM
  2. Replace formula with its value automatically
    By TalkTime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2014, 11:40 PM
  3. ADODB.Connection : Sourcefile + if condition = error
    By vadius in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2013, 03:00 PM
  4. Ribbon button displays sourcefile name
    By Edwin1962 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2012, 03:05 PM
  5. Replies: 3
    Last Post: 11-07-2012, 05:37 PM
  6. Replies: 2
    Last Post: 11-07-2012, 04:49 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