Hello,
I have about 31 worksheets by name of 1,2,3,4.....31.
Now, I need to find the last entry and from row number 3 to this row I need to paste entries as values. Because there are lookup formulas as well.
I tried using the below mentioned code, but it is not working. Please help.
Chosen 2 because first sheet is INDEX.
Sub update()
Dim ws As Worksheet
Dim kctr, irow As Integer
For kctr = 2 To 32
Set ws = ThisWorkbook.Sheets(kctr)
irow = ws.Cells(Rows.Count, 2).End(xlUp).Row
Rows(irow).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= False, Transpose:=False
kctr = kctr + 1
Next kctr
End Sub
I have about 31 worksheets by name of 1,2,3,4.....31.
Now, I need to find the last entry and from row number 3 to this row I need to paste entries as values. Because there are lookup formulas as well.
I tried using the below mentioned code, but it is not working. Please help.
Chosen 2 because first sheet is INDEX.
Sub update()
Dim ws As Worksheet
Dim kctr, irow As Integer
For kctr = 2 To 32
Set ws = ThisWorkbook.Sheets(kctr)
irow = ws.Cells(Rows.Count, 2).End(xlUp).Row
Rows(irow).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= False, Transpose:=False
kctr = kctr + 1
Next kctr
End Sub