Created
October 7, 2017 09:52
-
-
Save chhetripradeep/555ef977c38de14f4be0abc76583c135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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