I am trying to merge two cells that will be next to each other using VBA. I need to keep the row constant but the columns will change. I have tried using the two lines of code, but neither of them work. I would appreciate any insight into getting these to work. Thank you.
Worksheets("GT Quick Reference View").Range(Cells(1, j), Cells(1, j + 1)).Merge
Worksheets("GT Quick Reference View").Range("A" & j:"A" & j + 1).Merge
Worksheets("GT Quick Reference View").Range(Cells(1, j), Cells(1, j + 1)).Merge
Worksheets("GT Quick Reference View").Range("A" & j:"A" & j + 1).Merge