Quick and crude. This code goes in the applicable Worksheet Code Page. If you need it for more than one sheet, see below.
Option Explicit
Sub VBAX_AlignToLeft()
Dim LastRow As Long
Dim i As Long
LastRow = InputBox("What is the last Row number to align?", "Select Row Number")
With Range("A:A")
For i = 1 To LastRow
If WorksheetFunction.CountA(Rows(i)) > 0 Then
Do While .Cells(i).Value = ""
.Cells(i).Delete xlShiftToRight
Loop
End If
Next
End With
End Sub
This code is useable on any sheet. It goes in a Standard Module
Option Explicit
Sub VBAX_AlignToLeft()
Dim LastRow As Long
Dim i As Long
LastRow = InputBox("What is the last Row number to align?", "Select Row Number")
With ActiveSheet
With Range("A:A")
For i = 1 To LastRow
If WorksheetFunction.CountA(Rows(i)) > 0 Then
Do While .Cells(i).Value = ""
.Cells(i).Delete xlShiftToRight
Loop
End If
Next
End With
End With
End Sub