I am attempting to include some code in a procedure I have been developing, but I get errors with all the interations I have tried to use. The cells are A1:B1.
I have used the following code:
Range("A1:B1").Select
' Range("B1").Activate (commented out for testing)
Selection.MergeCells
I have also used Selection.Merge in the 3rd line. I have used the Macro Recorder and it has generated code using both Selection.MergeCells and Selection.Merge.
Do not find much info using web searchs and search of this site.
This should be fairly simple, but I am stumped at this point.
Thanks for any help!
CMW
I have used the following code:
Range("A1:B1").Select
' Range("B1").Activate (commented out for testing)
Selection.MergeCells
I have also used Selection.Merge in the 3rd line. I have used the Macro Recorder and it has generated code using both Selection.MergeCells and Selection.Merge.
Do not find much info using web searchs and search of this site.
This should be fairly simple, but I am stumped at this point.
Thanks for any help!
CMW