troubleshooting Question

Resetting Spreadsheet

Avatar of Bright01
Bright01Flag for United States of America asked on
Microsoft Excel
14 Comments1 Solution339 ViewsLast Modified:
EE Professionals,

I'm driving myself nuts with this problem.  I have a WS that clears itself and the color formats.

It Clears the table but will not clear the color changes in the referenced cells.

I've tried to use the following code and while it works in the "range" to clear and reset, the cells above 42 that are referenced by these table cells, do not change and if I use either the clear or the -0- command, I unfortunately replace the cell reference.  Any ideas?

Sub clearHeatmap()
Dim I As Integer
With Worksheets("BAO Heatmap")
    .Range("i52:i64") = "0"
    .Range("d42:d47") = "0"
    .Range("f42:f47") = "0"
    .Range("i42:i49") = "0"
    .Range("k42:k49") = "0"
    .Range("n42:n48") = "0"
    .Range("p42:p48") = "0"
    .Range("s42:s50") = "0"
    .Range("u42:u50") = "0"
    .Range("x42:x49") = "0"
'    Application.EnableEvents = True
'    Application.ScreenUpdating = True
   End With
End Sub
Saqib Husain

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros