I am writing a VBA script that will shift a merged cell down. When it does this a pop-up box comes up warning the user that this operation will unmerge merged cells.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("A28")) Is Nothing Then
Range("c28").Insert Shift:=xlDown
End If
I would like one of two things to happen.
A. Always automatically accept Yes so the popup doesn't show to the user. (and I'll re-merge in VBA after the insert)
B. Is there a way to shift down without unmerging to begin with.
Application.DisplayAlerts = Falsein the beggining of the sub andApplication.DisplayAlerts = Truein the very end - Dmitry PavlivApplication.DisplayAlerts = Falseas in my comment above? - Dmitry PavlivCor entire row? - Dmitry Pavliv