With help from this group I have a macro that clears the apostrophe or label hook out of cells in a worksheet. There is a range in each of 20 sheets (D4.O90) that should be either a number or a formula. Some users will use the space bar to remove a number and will leave the label hook thus causing other macro related problems.
The original macro must have worked, but it’s been a year and now when I go to use it, it keeps failing. The macro is as follows:
Sub ClearSeeminglyEmpty()
Dim oCell As Range
Cells.Select
For Each oCell In Selection.SpecialCells(xlCellTypeConstants) Note: this is the failure point
If Trim(oCell) = “” Then
oCell.Value = 0
End If
Next oCell
Set oCell = Nothing
End Sub
Can you help me figure out why it is failing AND modify it so it runs for every sheet in the workbook except the ones named “instructions” and “upload”.
TIA