If your 13-digit โnumberโ is really text, that is, you donโt intend to do any math on it, you can precede it with an apostrophe
Sheet3.Range("c" & k).Value = "'" & Sheet2.Range("c" & i).Value
But I donโt see how a 13-bit number will ever pass the If statement, because it will always be more than 1000. Here is an alternative version
Sub CommandClick() Dim rCell As Range Dim rNext As Range For Each rCell In Sheet2.Range("C1:C30000").Cells If rCell.Value >= 100 And rCell.Value < 1000 Then Set rNext = Sheet3.Cells(Sheet3.Rows.Count, 1).End(xlUp).Offset(1, 0) rNext.Resize(1, 3).Value = rCell.Offset(0, -2).Resize(1, 3).Value End If Next rCell End Sub
source share