sorry for this amateur question i'm just a beginner in VBA.
i have a cell that contains 19 characters of numbers. as u know, because of its length excel can't show whole number till u change the cell format to Text.
now the A1 Value is : 3310195401193581830.
if i want to use autofill series, it doesn't work cause the cell format is Text. so i just split the value into two parts as shown below:
Dim SerialIDR, SerialIDL As String
SerialIDR = Right(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 9)
SerialIDL = Left(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 10)
ThisWorkbook.Worksheets("Sheet1").Range("A2").Value = SerialIDL & SerialIDR + 1
SerialIDR = Right(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 9)
SerialIDL = Left(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 10)
ThisWorkbook.Worksheets("Sheet1").Range("A3").Value = SerialIDL & SerialIDR + 2
SerialIDR = Right(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 9)
SerialIDL = Left(ThisWorkbook.Worksheets("Sheet1").Range("A1").Value, 10)
ThisWorkbook.Worksheets("Sheet1").Range("A4").Value = SerialIDL & SerialIDR + 3
so can someone help me to do this:
get the 19 chars number.loop through a column and autofill series this value for X cells in column. just like this: 3310195401193581830
3310195401193581831
3310195401193581832 ...