I can't get past this. I am try'ing to add auto numbering to A column, but for some reason I cannot add 1 to to the value. I am not sure why and maybe there is easier way to work around it ?
all module code:
Dim rng As Range
Set rng = Cells.Find(what:="*", after:=Cells(2),
searchdirection:=xlPrevious, searchorder:=xlByColumns)
b = rng.Offset(0, 0).Address
a = rng.Offset(1, 0).Address
s = ActiveCell.Offset(-1, -1).Address
With Range(s, ActiveCell.Offset(-1, 11).Address).Borders(xlEdgeBottom)
.LineStyle = xlContinous
.Weight = xlThin
End With
Worksheets("Fakturos").Range(a, s).Merge
This is where I get stuck:
If (Range(b).Value <> " ") Then
'Range(a).Value + 1
Else
Range(b).Value = 1
End If