Multi-Sheet Input Table

Excel2021

New Member
Joined
Mar 26, 2021
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hello, I am wondering if there is anything in Excel which would allow me to create identical input tables on different sheets and have that data drive an output table on another sheet. The inputs tables should be identical at all times and the user should be able to enter data on either.
Input tables.PNG
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You can write an event handler for SheetChange event in a Workbook. Assuming your 2 input sheets are: Sheet1, and Sheet2, and the output sheet is called just Output. Save the workbook in VBA enabled file (extension xlsm, xlsb, etc.)
Use such code in Thisworkbook module (see screenshot):

VBA Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim shdest As Worksheet

If Sh.Name = "Sheet1" Then Set shdest = Sheets("Sheet2")
If Sh.Name = "Sheet2" Then Set shdest = Sheets("Sheet1")

If Not shdest Is Nothing Then
  Application.EnableEvents = False
    Target.Copy shdest.Range(Target.Address)
    Target.Copy Sheets("Output").Range(Target.Address)
  Application.EnableEvents = True
End If

End Sub

1725623322394.png
 
Upvote 0

Forum statistics

Threads
1,221,499
Messages
6,160,169
Members
451,629
Latest member
MNexcelguy19

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