hello all,
i need vba code to insert row based on count number in adjacent cell but ignore count number = 1,
here my attached file, please see it........
regards
john m
hello all,
i need vba code to insert row based on count number in adjacent cell but ignore count number = 1,
here my attached file, please see it........
regards
john m
Try this...
![]()
Sub Insert_Rows() Dim i As Long Application.ScreenUpdating = False For i = Range("A" & Rows.Count).End(xlUp).Row To 3 Step -1 With Range("A" & i) If IsNumeric(.Value) And .Value > 1 Then .Offset(1).EntireRow.Resize(.Value - 1).Insert End If End With Next i Application.ScreenUpdating = True End Sub
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
THANK you very much AlphaFrog, i am happy now...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks