Termo de Responsabilidade
Sub DelDoubleLine()
Dim nLine As LongDim nString, nRow As StringDim nAdress as String
Let nLine = 1Let nAdress = "B10"
Range (nAdress).Select
Let str = Range (nAdress).Value
Do While Not ActiveCell.Offset (nLine).Value = ""If ActiveCell.Offset (nLine).Value = nString ThenLoopGoSub DeleteRowElseLet nString = ActiveCell.Offset (nLine).ValueLet nLine = nLine + 1End If
Exit Sub
DeleteRow:Let nRow = nLine + 1 & ":" & nLine + 1
Rows (nRow).Select Selection.Delete Shift:=xlUp
Range (nAdress).Select
ReturnEnd Sub
Reference::
Tags: VBA, Excel, rows, line,
Nenhum comentário:
Postar um comentário