Hello all,
I am on a Mac therefore cannot use Power Query as a solution and avoid what I am trying to do.
I have a master workbook that is linked to over 40 other workbooks and draws a set of data from each of them. These workbooks also contain links to other workbooks. I have written a macro that updates the links in the master workbook when the file locations of the other workbooks change, however I also have to open and close each workbook the master workbook refers to so that the data gets updated (meaning I also have to answer the prompt to allow/disallow macros and the prompt to update links, for each file). I have attempted to add to my existing code to automate this but haven't succeeded in getting this to work.
What code should I use so that it opens a file, skips the dialogue box to allow macros, selects the update links option, then closes the file and repeats for each file?
I am on a Mac therefore cannot use Power Query as a solution and avoid what I am trying to do.
I have a master workbook that is linked to over 40 other workbooks and draws a set of data from each of them. These workbooks also contain links to other workbooks. I have written a macro that updates the links in the master workbook when the file locations of the other workbooks change, however I also have to open and close each workbook the master workbook refers to so that the data gets updated (meaning I also have to answer the prompt to allow/disallow macros and the prompt to update links, for each file). I have attempted to add to my existing code to automate this but haven't succeeded in getting this to work.
What code should I use so that it opens a file, skips the dialogue box to allow macros, selects the update links option, then closes the file and repeats for each file?