Using Excel 2013.
I am puzzled. Why does the 1st line of code work but not the 2nd? Thank you.
ThisWorkbook.Sheets("Table 1").Range(Cells(1, 1).Address & ":" & Cells(1, 3).Address).MergeCells = True
ThisWorkbook.Sheets("Table 1").Range("A1:C1").MergeCells = True
I am puzzled. Why does the 1st line of code work but not the 2nd? Thank you.
ThisWorkbook.Sheets("Table 1").Range(Cells(1, 1).Address & ":" & Cells(1, 3).Address).MergeCells = True
ThisWorkbook.Sheets("Table 1").Range("A1:C1").MergeCells = True