himaruasuka
New Member
- Joined
- May 26, 2022
- Messages
- 12
- Office Version
- 2013
- Platform
- Windows
- Mobile
Good day everyone!
I am looking for help. I tried this code already and it is working but I have some problem with it.
It is successfully copy/move the data to another sheet but without using a 'table'.
I want to convert this code that can copy/move data to another sheet with a 'table'.
It can move the data but it copied in one row only.
I don't know what's wrong with the code.
Please help me~
I am looking for help. I tried this code already and it is working but I have some problem with it.
It is successfully copy/move the data to another sheet but without using a 'table'.
I want to convert this code that can copy/move data to another sheet with a 'table'.
It can move the data but it copied in one row only.
I don't know what's wrong with the code.
Please help me~
Private Sub export_confirm_Click()
If export_passtxt = "himaru1989" Then
Selection.EntireRow.Copy
Worksheets("COMPLETE").Unprotect "utt"
LastRow = Sheets("COMPLETE").Cells(Rows.Count, 1).End(xlUp).Row + 1
ActiveSheet.Paste Destination:=Worksheets("COMPLETE").Range("a" & LastRow)
Worksheets("COMPLETE").Protect "utt"
Worksheets("ORDERS").Unprotect "utt"
Selection.EntireRow.Delete
'ActiveWorkbook.Save
Worksheets("ORDERS").Protect "utt"
Unload exportpassword
Exit Sub
Else
MsgBox "Password is incorrect!"
End If
End Sub