Hi everyone!
Actually I already use below formula to copies data from another sheet to another sheet.
That is, by clicking one bevel button, then all the selected data will be pasted to another sheet.
Sub Bevel2_Click()
Dim wsRegister_IN As Worksheet
Dim wsDatabase As Worksheet
Dim CopyLastRow As Long
Dim DestLastRow As Long
Set wsRegister_IN = Worksheets("Register IN")
Set wsDatabase = Worksheets("Database")
CopyLastRow = wsRegister_IN.Range("A" & wsRegister_IN.Rows.Count).End(xlUp).Row + 1
DestLastRow = wsDatabase.Range("A" & wsDatabase.Rows.Count).End(xlUp).Row + 1
wsRegister_IN.Range("A3", "J" & CopyLastRow).Copy Destination:=wsDatabase.Range("A" & DestLastRow)
Application.CutCopyMode = False
End Sub
But because in another sheet already create a formula in one column between copies of the data.
Then how can I modify the VBA program above to skip that column when pasted to another sheet.
Thank you.
Actually I already use below formula to copies data from another sheet to another sheet.
That is, by clicking one bevel button, then all the selected data will be pasted to another sheet.
Sub Bevel2_Click()
Dim wsRegister_IN As Worksheet
Dim wsDatabase As Worksheet
Dim CopyLastRow As Long
Dim DestLastRow As Long
Set wsRegister_IN = Worksheets("Register IN")
Set wsDatabase = Worksheets("Database")
CopyLastRow = wsRegister_IN.Range("A" & wsRegister_IN.Rows.Count).End(xlUp).Row + 1
DestLastRow = wsDatabase.Range("A" & wsDatabase.Rows.Count).End(xlUp).Row + 1
wsRegister_IN.Range("A3", "J" & CopyLastRow).Copy Destination:=wsDatabase.Range("A" & DestLastRow)
Application.CutCopyMode = False
End Sub
But because in another sheet already create a formula in one column between copies of the data.
Then how can I modify the VBA program above to skip that column when pasted to another sheet.
Thank you.