Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chhetripradeep/555ef977c38de14f4be0abc76583c135 to your computer and use it in GitHub Desktop.
Save chhetripradeep/555ef977c38de14f4be0abc76583c135 to your computer and use it in GitHub Desktop.
Sub blah()
Dim rng As Range
With ActiveSheet
With Intersect(.UsedRange, .Range("B:BZ"))
.Value = .Value
For Each cll In .Cells
If Len(cll.Value) = 0 Then Set rng = Union(cll, IIf(rng Is Nothing, cll, rng))
Next cll
End With
End With
rng.Delete xlShiftToLeft
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment