Automatically updating Master sheet if other sheets are updated?

afc171

Board Regular
Joined
Jan 14, 2017
Messages
143
Office Version
  1. 2013
Platform
  1. Windows
Hi guys,
I have a spreadsheet with a "Master" sheet which has all information listed from all the other sheets. At the moment I have used = to add data from other sheets into the Master one.
Now someone might add or remove a line from any of the sheets which you then have to manually re-do the master sheet.
Is there a different method to update the master file automatically if any data is changed in other sheets? each sheet has the same headers in cells A:I

Thank you
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Cell Formulas
RangeFormula
A3:A17A3=Table12[@Product]
B3:B17B3=Table12[@[Product code]]
C3:C17C3=Table12[@[Box size]]
D3:D17D3=Table12[@Supplier]
E3:E17E3=Table12[@[Pack size]]
F3:F17F3=Table12[@[Available stock ]]
G3:G17G3=Table12[@[Bin Number]]
H3:H17H3=Table12[@Quantity]
I3:I17I3=Table12[@Department]
 
Upvote 0
LC.xlsm
ABCDEFGHI
1ProductProduct codeRemoval quantity from entry roomRe-order pointQuantity to orderAvailable stock Bin NumberQUANTITYDepartment
2Flow Tubes3520081 Box1 Box2 Boxes18LC16
32 x Laemmli *16107371 Bottle0 Bottles1 Bottle3LC16
44 x Laemmli *16107471 Bottle0 Bottles1 Bottle3LC16
510 x TGS running buffer *16107721 Box0 Boxes1 Box4LC17
6CRITERION 4-15% TGX STAIN-FREE GEL5678084Storage in the cold room15 gelsReplenish stock to 25 gels6LCLAB28
7ANY KD CRITERION TGX STAIN-FREE GEL5678124Storage in the cold room15 gelsReplenish stock to 25 gels102LCLAB28
810 ml syringes158791521 Box01 Box3LC10
9LTS L10 refill tips303892911 Tower1 Tower1 Tower8LC7
10LTS L1000 refill tips303892921 Tower2 Towers3 Towers17LC7
11LTS L200 refill tips303892991 Tower1 Tower1 Tower13LC7
125 ml stripette1012-74001 Bag2 Bags (½ Box)2 Boxes4LC12
1350 ml falcon tubes1033-41311 Tray12 Trays1 Box of 5001LC20
145 ml Gilson tips1035-78521 Bag01 Box1LC17
15ELISA plates1054-4522Individual10 plates1 Box0LC6
1615 ml falcon tubes1057-96911 Tray5 Trays2 Boxs of 50010LC21
1750 ml stripettes1063-63911 Bag2 Bags (½ Box)1 Boxes6LC10
StockRoom
Cell Formulas
RangeFormula
F2:F17F2=VLOOKUP([@[Product code]]&"",'Stk_Qty-LC'!A:F,5,FALSE)
G2:G17G2=VLOOKUP([@[Product code]]&"",'Stk_Qty-LC'!A:F,4,FALSE)
Named Ranges
NameRefers ToCells
'Stk_Qty-LC'!Query_from_CRSS='Stk_Qty-LC'!$A$1:$F$550F2:G17
 
Upvote 0
Lets say someone adds or removes something from the StockRoom sheet (or other sheets) how can I update the CopyData sheet automatically or with a VBA?
 
Upvote 0
I am a bit lost here, CopyData refers to Table12 but that doesn't look to be StockRoom.

I don't tend to use tables or named ranges much, let's try something else.

I see no rows are named, do you just need code to copy down CopyData rows to be the same amount of rows as the StockRoom?
 
Upvote 0
I am a bit lost here, CopyData refers to Table12 but that doesn't look to be StockRoom.

I don't tend to use tables or named ranges much, let's try something else.

I see no rows are named, do you just need code to copy down CopyData rows to be the same amount of rows as the StockRoom?

Sorry I removed some sheets to make it abit simple when pasting here.

Yes just need the row data from StockRoom or other sheets copied into CopyData
 
Upvote 0
In these other sheets, are they new columns or new rows in the master?

You need to find the last row in the copy from sheet and copy the formulas down to there it seems, at least for the first sheet.

Assuming there may be more or less rows, clear the data first apart from the top formula row. Something like:

VBA Code:
Sub FindingLastRow()

Dim sht As Worksheet
Dim master As Worksheet
Dim LastRow As Long

Set sht = Sheets("StockRoom")
Set master = Sheets("CopyData")

master.Range("A4:A1000").ClearContents
LastRow = sht.Cells(sht.Rows.Count, "A").End(xlUp).Row
master.Range("A3:I3").Copy master.Range("A3:I" & LastRow)

End Sub
 
Upvote 0
Is it meant to copy it over to CopyData from StockRoom?

VBA Code:
Sub FindingLastRow()

Dim sht As Worksheet
Dim master As Worksheet
Dim LastRow As Long

Set sht = Sheets("StockRoom")
Set master = Sheets("CopyData")

master.Range("A4:A1000").ClearContents
LastRow = sht.Cells(sht.Rows.Count, "A").End(xlUp).Row
sht.Range("A3:I" & LastRow).Copy master.Range("A3:I" & LastRow)

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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