una roba del genere?

Codice PHP:
Sub CommandButton1_Click
    Dim Riga 
As Integer
    Riga 
PrimaRigaVuota
    Cells
(Riga 11).EntireRow.Copy
    Cells
(Riga 11).Insert xlUp
    Cells
(Riga1).PasteSpecial
    Application
.CutCopyMode xlCopy
End Sub

Function PrimaRigaVuota() As Integer
    PrimaRigaVuota 
1
    
Do While Not Len(Trim(Cells(PrimaRigaVuota1).Value)) = 0
        PrimaRigaVuota 
PrimaRigaVuota 1
    Loop
End 
Function