+ Reply to Thread
Results 1 to 22 of 22

Vba multiple spreedsheets linked

  1. #1
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Vba multiple spreedsheets linked

    I have created a spreadsheet and made a copy for each user so they store their own information and then information is linked to a master excel sheet via a power query. However the issue I faced was that if I wanted to make a change to main sheet I have to go to each user sheet and copy the changes over. For example. I wanted to add a column and wanted to reflect on all users sheets.

    is there an easier way?
    Attached Files Attached Files
    Last edited by DEEARO; 06-19-2020 at 08:56 AM.

  2. #2
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: multipule spreedsheets linked

    hi,

    you can create a power query parameter, just need to update in one table and propagate to other user query, can visualise your spreadsheet, best you can upload a mock-up of your workbook
    Christopher Yap

  3. #3
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    hi bluesky63 I have added a file in post #1

  4. #4
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    Is anyone able to help future

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: multipule spreedsheets linked

    You supply 1 file with 1 sheet and no data at all - not really that much to go on, not is it?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    Don't need data at the moment, the sheet is the master copy of the table. There are 10 people with each having their own copy of the file. However I want to add an extra column to each of the 10 users. Is there an easier way set up the file so in the future I don't need to go into each of 10 users file and add the column.

  7. #7
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: multipule spreedsheets linked

    Hi Deerao

    Are you saying each users will have originally 6 fields (your attached master files)initially

    and subsequently when you add the 7th field in the master file, each user will have to manually add the 7th fields ?

    There are many way to do it and we need to know your entire flow of update and also the finally reporting etc

    Either each of the users will have a connector (Goto Data > Connections > Add the master file) goto existing connection and
    master file fields, whenever there is an update or additional of the master fields, users just need to right-click and refresh to
    get their table updated

    Kindly please illustrate and explain a little bit more so that we can provide you the suitable solution
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    Hi bluesky63 /ALL

    Thank you for your replies. as requested further details


    I have attached a zip file and the files individually.


    Master: This workbook is main copy and I have copied this file for each user
    Staff1, staff2, are each user to collect their own data (copy of the Master workbook)
    DATA COLLECTION: this file uses power query to collect all users data to 1 single file


    I wanted to add new columns to each user file and change the name of one the fields (as their was a spelling mistake), so I went into each workbook and manually completed this task (at work I had almost 90users, so took a very long time to complete)..


    How do set up my files so in the future I can do this task without going into each user, hence I only have to change the master workbook.
    Attached Files Attached Files
    Last edited by DEEARO; 06-22-2020 at 05:24 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: multipule spreedsheets linked

    (as their was a spelling mistake) ...
    That's ironic!

    I think the updating of the slave worksheets will probably require VBA - I don't believe it can be done with PowerQuery without deleting any data that has been manually entered.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    Hi Ali, thank you for the response. I Don't know vba, are you able to help with the writing the code?

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: multipule spreedsheets linked

    Unfortunately not, and it was merely an observation, but there are others here who do VBA.

  12. #12
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    is there any one who is able to find a solution for please ?

  13. #13
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    is there any one who is able to find a solution for please ?

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: multipule spreedsheets linked

    You are getting no interest. Shall I move this to the VBA section for you and see if you get a bite there?

  15. #15
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: multipule spreedsheets linked

    hi maybe that would be a good idea or what about the power query group (https://excelfox.com/forum/forumdisp...t-and-Power-BI) or both?

  16. #16
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: Vba multiple spreedsheets linked

    Ali, how do we transfer case over to another section

  17. #17
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Vba multiple spreedsheets linked

    Hi Deearo,

    Done using Data connections and Power Query

    Master.xls ==> this is the master header for you to change whenever you want
    Staff1a.xlsx - Contain staff1a data entries and also always link to Master.xls, any changes in the master headers will update in user file
    Staff2a.xlsx - Contain staffa data entries and also always link to Master.xls, any changes in the master headers will update in user file
    combined_Report.xls - Combine all the Staff files into a single one

    My Query code is basing on From Folder, please change the source to your own local drive, copy all the staff files and Master, combined into the folder

    This is what I can think of the quick and easy way without VBA, may not be the best

    Rgds
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: Vba multiple spreedsheets linked

    thank you very much this looks what I want to achieve. I just tried to create my own connections but no headers shows. Please can you help by giving me the step by step guide how to create a connection please

    I have tried to look for a video on youtube but cannot find a video which suits this scenario

  19. #19
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: Vba multiple spreedsheets linked

    thank you soooooooooooooooooo much, amazing I got it to work.

  20. #20
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Vba multiple spreedsheets linked

    Hi Deearo, so you managed to figure out ?

  21. #21
    Forum Contributor
    Join Date
    05-03-2020
    Location
    London
    MS-Off Ver
    MICROSOFT 365
    Posts
    282

    Re: Vba multiple spreedsheets linked

    Yes I have managed to figure it out. I have found few issues, if there are 2 tables on one sheet it combines it into one table. In addition, If you add a column in the middle of the Master table, then rest of the data in the staff sheet does not move accordingly

  22. #22
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Vba multiple spreedsheets linked

    Hi Deearo,

    ...... if there are 2 tables on one sheet it combines it into one table.............. don't understand this, give me a sample

    this solution is a workaround without using VBA or other scripting, inserting new field in the master header will not make the other staff1a, staff2a worksheets insert a the data column accordingly,

    This is not "issue", as mentioned by Ali, updating of slave worksheets require coding

    Rgds

+ 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. Finding spreedsheets by name of it macro
    By Szwadron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2015, 06:22 AM
  2. Merging two spreedsheets containing address into one
    By ovettmufc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-16-2013, 07:57 AM
  3. Make Relation Between two spreedsheets
    By bobo_21002100 in forum Excel General
    Replies: 0
    Last Post: 06-18-2010, 01:32 PM
  4. Link 2 SpreedSheets
    By Khaled197 in forum Excel General
    Replies: 1
    Last Post: 03-03-2007, 09:57 AM
  5. [SOLVED] How do i add multi-spreedsheets together
    By Ashley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2006, 04:10 PM
  6. Replies: 3
    Last Post: 02-15-2005, 08:13 PM
  7. Replies: 0
    Last Post: 02-15-2005, 05:49 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