Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88054

Error on the s of clearcontents on the same line

$
0
0

VB runtime-error 1004 : "We can't do that to merged cells"

How can I solve this issue?

Sub Cont_New()
  With Sheet1

    .Range("R33").Value = True 'Contact Load
    .Range("R32").Value = True 'New Contact to True
    .Range("D7,D9,D11").ClearContents
    .Shapes("ExistContGrp").Visible = msoFalse
    .Shapes("NewContGrp").Visible = msoTrue
    .Range("R33").Value = False 'COntact Load to False
  End With
End Sub

Viewing all articles
Browse latest Browse all 88054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>