With the simple Excel macro below, we can make all cells in active Worksheet that contains Error value in it, like #NULL, #Div/0!, #VALUE!, #Ref, #NAME?, #NUM!, And #N/A, will automatically having cell format that different/stand out among all other cells.
In this example, background color of the cell that contains the error value will automatically change color to red, each time the Excel Worksheet activated.
Private Sub Workbook_SheetActivate(ByVal Sh As Object) Dim errCells As Range Set errCells = Cells.SpecialCells(xlCellTypeFormulas, xlErrors) errCells.Interior.Color = 255 Set errCells = Nothing End Sub
Note that using the Cells.SpeciallCells function, we do not need to perform any looping to get Cells which contains the Error value.
This is just like automating Excel cell conditional formating process. Instead of selecting manually all the cells contains Error value or select all cells and then performing cell conditional format, with above code, we do it automatically using simple Excel VBA macro.
Pingback: promotion
Pingback: adele
Pingback: dentist brooklyn ny
Pingback: Burnaby SEO
Pingback: Eugene
Pingback: kitchen design review
Pingback: click here
Pingback: cheap printing
Pingback: achat produit naturel
Pingback: Penny Auction Sites
Pingback: seyari
Pingback: wieprz
Pingback: jocuripentrucopii
Pingback: radio echo
Pingback: kwik98
Pingback: matma matura
Pingback: TM
Pingback: radio hit
Pingback: scrapebox list
Pingback: praying hands
Pingback: Symbol LS7808 Barcode Scanner
Pingback: servis char
Pingback: diabetic bags
Pingback: alpharetta tree service
Pingback: mansfield tx private schools