Advertisement
oshkoshbagoshh

clearformats_allcellsWOdata

Aug 18th, 2017
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '***************************************************************************
  2. ' Remove formatting of ALL cells in a sheet that don't have data
  3. '      -- WARNING: Takes a while to run
  4. '                       ~~ AJ ~~
  5. ' ***************************************************************************
  6.  
  7.  
  8. Sub Foo()
  9. ActiveSheet.UsedRange.SpecialCells(xlCellTypeBlanks).ClearFormats
  10. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement