Combine Worksheets and Dynamically Update Information

KirstenPM

New Member
Joined
Aug 11, 2014
Messages
4
I have three worksheets, created by three different organizations. The organizations update these worksheets multiple times a day and do not want to combine them, because that would mean 50+ users attempting to access one worksheet to log their changes. I need to have one "master" worksheet that pulls in information from each of these worksheets and as the worksheets are updated, I need the master to dynamically update. I tried the RDMB Merge Add-In, but it doesn't really seem to do the trick for me.

Is there a non-macro way to do this? If macros are the only way to go, can someone help me? I'm short on time and don't know much about writing macros.

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Are the formats of the three workbooks identical?

What would the master sheet workbook look like?

My idea would be to have a button/macro that would basically rebuild the master sheet every time it was clicked.
 
Upvote 0
Are the formats the same? Yes and no. They have agreed to make their first 11 columns contain the same data and in the same order (i.e. Column A is the engineer's name in all three sheets). The master sheet would only contain these first 11 columns and would be in the same order as the feeder sheets.

I'm OK with the idea of having to click a button for the update, but wouldn't have a clue on how to code this.
 
Upvote 0
Ok, that sounds like it will be fairly simple.

It might be tomorrow that I get round to it as I've finished work for the day.

Chris
 
Upvote 0
Welcome to the Board!

For a multi-user environment, Access is a much better way to go. Is that an option?
 
Upvote 0
This type of thing definitely lends itself to a database, definitely!!! But I'm considered an end-user of the data and the groups are not comfortable with Access and will not use it. We've been stale-mated on this for going on 2 years.
 
Upvote 0
You can make Access as user-friendly as you like, perhaps more so than Excel from a data input standpoint.

Check out some of the Access templates, many of which are easy to modify/deploy.
 
Upvote 0
I would tackle this as follows:

Code:
Sub Combine()
    wb = ActiveWorkbook.Name
    a = "C:\Workbook1.xlsx"
    b = "C:\Workbook2.xlsx"
    c = "C:\Workbook3.xlsx"
    n = Cells(Rows.Count, 1).End(xlUp).Row
    Rows("1:" & n).Delete
    
    Workbooks.Open(a,,True)
    aname = ActiveWorkbook.Name
    k = Cells(Rows.Count, 1).End(xlUp).Row
    Range("A2:K" & n).Copy
    Workbooks(wb).Activate
    n = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(n, 1).PasteSpecial Paste:=xlPasteValues
    Workbooks(aname).Close
    
    Workbooks.Open(b,,True)
    bname = ActiveWorkbook.Name
    k = Cells(Rows.Count, 1).End(xlUp).Row
    Range("A2:K" & n).Copy
    Workbooks(wb).Activate
    n = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(n, 1).PasteSpecial Paste:=xlPasteValues
    Workbooks(bname).Close
    
    Workbooks.Open(c,,True)
    cname = ActiveWorkbook.Name
    k = Cells(Rows.Count, 1).End(xlUp).Row
    Range("A2:K" & n).Copy
    Workbooks(wb).Activate
    n = Cells(Rows.Count, 1).End(xlUp).Row + 1
    Cells(n, 1).PasteSpecial Paste:=xlPasteValues
    Workbooks(cname).Close
    
    Workbooks(wb).Activate
    Cells(1, 1).Activate
    ActiveWindow.ScrollRow = 1
    ActiveWindow.ScrollColumn = 1
End Sub
This is the basic concept, it may require tweaking for sheet names, etc.

I would run this code from an ActiveX Button, and it would basically rebuild the worksheet from scratch.

Note that this would be no good if you kept your own comments, etc. on your own master worksheet as these would be deleted.

Hope this helps,

Chris.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,652
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top