Sub solution()
Application.ScreenUpdating = False
ChDir _
"C:\"
Workbooks.Open Filename:= _
"C:\TestValue.xls" 'my test file
Range("A1").Select
Selection.Copy
ActiveWorkbook.Close
Range("B1").Select 'in my example i use B1 instead of ab3
ActiveSheet.Unprotect "dod"
ActiveSheet.PasteSpecial Format:="Unicode Text", Link:=False, _
DisplayAsIcon:=False
ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _
True
' finished importing the cell value
' start or numbering in sheet 2
Dim i As Integer
Sheets("Sheet2").Select
Range("C:C").Clear ' where i wanted the sequential number to go
Cells(1, 3).Select
i = 1
ActiveCell.Value = i
Do While i < Worksheets("Sheet1").Range("B1").Value
If ActiveCell.Row = 65535 Then ' if more than this amount then move to next column
Cells(1, ActiveCell.Column + 1).Select
Else
ActiveCell.Offset(1).Select
End If
i = i + 1
ActiveCell.Value = i
Loop
' end of numbering
' start of copy and paste back into sheet 1
Sheets("Sheet1").Select
ActiveSheet.Unprotect
Sheets("Sheet2").Select
Columns("C:C").Select
Selection.Copy
Sheets("Sheet1").Select
Columns("B:B").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("B1").Select
Application.ScreenUpdating = True
' end of macro
End Sub