
Announcements
Hello,
I have an Excel spreadsheet in which I would like to add some automation so that when some data is entered in Sheet A it is automatically copied in Sheet B, and can be copied in Sheet C when requested.
Also, I would like that when data is deleted from Sheet A, it also deletes in Sheet B and can't be available in Sheet C.
I also want that when a row is added in Sheet A, it's automatically added in Sheet B; and one can't add a row in Sheet B manually.
Thanks for any help
=IF(SheetA!A1<>"", SheetA!A1, "")
Sub CopyToSheetC()
Dim wsA As Worksheet, wsC As Worksheet
Set wsA = Sheets("SheetA")
Set wsC = Sheets("SheetC")
wsC.Cells.ClearContents 'Optional: Clear old data
wsA.UsedRange.Copy Destination:=wsC.Range("A1")
End Sub