Last active
November 18, 2015 05:03
-
-
Save miau/a27beec55296244d4ab1 to your computer and use it in GitHub Desktop.
Excel VBA that removes white background color
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 RemoveWhiteBgcolor() | |
With Application.FindFormat.Interior | |
.PatternColorIndex = xlAutomatic | |
.Color = &HFFFFFF | |
.TintAndShade = 0 | |
.PatternTintAndShade = 0 | |
End With | |
With Application.ReplaceFormat.Interior | |
.Pattern = xlNone | |
.TintAndShade = 0 | |
.PatternTintAndShade = 0 | |
End With | |
Cells.Replace What:="", Replacement:="", LookAt:=xlPart, SearchOrder:= _ | |
xlByRows, MatchCase:=False, SearchFormat:=True, ReplaceFormat:=True | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment