M
mark1
I'm trying to make a merge cell toggle in VBA. So far I
have:
Selection.MergeCells = Not Selection.MergeCells
Selection.WrapText = Not Selection.WrapText
Selection.HorizontalAlignment = xlCenter
The Not statement is used for the first two toggle
commands, but I don't know how to do the last one
(xlCenter). How do I make the toggle for that one so that
it goes back to left align? Thanks!!
have:
Selection.MergeCells = Not Selection.MergeCells
Selection.WrapText = Not Selection.WrapText
Selection.HorizontalAlignment = xlCenter
The Not statement is used for the first two toggle
commands, but I don't know how to do the last one
(xlCenter). How do I make the toggle for that one so that
it goes back to left align? Thanks!!