Hi all
I've done my utmost to find solutions elsewhere but despite my best efforts I'm still lost.
I'm trying to set up a bed board for a hospital ward, I've managed the basics, setting up a table to record who is in what bed, but I need now to be able to archive the patients when they leave in a separate table for lookup later. I'm using buttons for each "bed" to set the range (Bed) before calling the below Sub and then clearing the row.
I'm coming unstuck when pasting, as I want to paste the set range into the last row of Table1, but each time I paste it goes beneath the table instead! The code I have at present is -
Sub CopyFormulas()
Dim sht2 As Worksheet
Set sht2 = Sheets("Sheet2")
Bed.Copy
sht2.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial
Application.CutCopyMode = False
response = MsgBox("patient has left the ward")
End Sub
I've tried various ListObjects solutions, but to be honest I'm not sure I understand them!
I've done my utmost to find solutions elsewhere but despite my best efforts I'm still lost.
I'm trying to set up a bed board for a hospital ward, I've managed the basics, setting up a table to record who is in what bed, but I need now to be able to archive the patients when they leave in a separate table for lookup later. I'm using buttons for each "bed" to set the range (Bed) before calling the below Sub and then clearing the row.
I'm coming unstuck when pasting, as I want to paste the set range into the last row of Table1, but each time I paste it goes beneath the table instead! The code I have at present is -
Sub CopyFormulas()
Dim sht2 As Worksheet
Set sht2 = Sheets("Sheet2")
Bed.Copy
sht2.Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).PasteSpecial
Application.CutCopyMode = False
response = MsgBox("patient has left the ward")
End Sub
I've tried various ListObjects solutions, but to be honest I'm not sure I understand them!