Hai all,
I need your help, i made a macro code for move data from 1 sheet to another (Cut-Paste) in the protected sheet. The problem is, when i protect the sheet, my macro code didn't work. Do you have any idea?
Here is the macro code
I need your help, i made a macro code for move data from 1 sheet to another (Cut-Paste) in the protected sheet. The problem is, when i protect the sheet, my macro code didn't work. Do you have any idea?
Here is the macro code
Code:
Sub Oki()
h = 2
For r = 3 To 100 Step 1
If Cells(r, "T") > 0 And _
WorksheetFunction.IsText(Cells(r, "T")) = False Then
Sheets(2).Activate
DesRow = Cells(Rows.Count, "B").End(xlUp).Row + h
h = 1
Sheets(1).Activate
Cells(r, "T").EntireRow.Copy Sheets(2).Cells(DesRow, "A")
Application.CutCopyMode = False
Cells(r, "T").EntireRow.Delete
r = r - 1
End If
Next
End Sub