Quero mesclar o valor da célula com "/" se o próximo valor da coluna A estiver em branco. Anexei uma imagem original.
Dim ws As Worksheet
Dim lastRow As Long
Dim i As Long, j As Long
Set ws = ThisWorkbook.Sheets("Ruff")
lastRow = ws.Range("B:B").SpecialCells(xlCellTypeLastCell).Row
i = 1
j = 1
For i = 3 To lastRow
If Not ws.Cells(i + 1, "A").Value = "" Then
ws.Cells(i, "G").Value = ws.Cells(i, "B").Value
Else
j = i
Do Until Not IsEmpty(ws.Cells(i, 1).Value)
ws.Cells(j, "G").Value = ws.Cells(i, "B").Value
ws.Cells(j, "G").Value = ws.Cells(j, "G").Value & "/" & ws.Cells(i + 1, "B").Value
i = i + 1
Loop
End If
Next i
End Sub