Every cells in the range ("E8:ZZ99") in Sheet 1 contains fomulars and if any one cell is #N/A, then a warning message would display. I guess I need a macro to scan every cells until it finds NA and display a warning message...
Sub count()
Dim c As Range
Dim my As Range
Set my = Range("E8:ZZ88")
For Each c In my
If IsError(c.Value) Then c.Value = "Error!, Please Refresh Again"
Next
End Sub
I copied the code and change the range as you can see below but it resulted in Application.define or Object.defined error at the Set my = Sheets("Summary").Range("E8:ZZ88") line
Sub count()
Dim c As Range
Dim my As Range
Set my = Sheets("Summary").Range("E8:ZZ88")
For Each c In my
If IsError(c.Value) Then c.Value = "Error!, Please Refresh Again"
Next
End Sub
We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel
Which adblocker are you using?
Disable AdBlock
Follow these easy steps to disable AdBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the icon in the browser’s toolbar. 2)Click on the "Pause on this site" option.
Go back
Disable AdBlock Plus
Follow these easy steps to disable AdBlock Plus
1)Click on the icon in the browser’s toolbar. 2)Click on the toggle to disable it for "mrexcel.com".
Go back
Disable uBlock Origin
Follow these easy steps to disable uBlock Origin
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.
Go back
Disable uBlock
Follow these easy steps to disable uBlock
1)Click on the icon in the browser’s toolbar. 2)Click on the "Power" button. 3)Click on the "Refresh" button.