A
Alan
I get an error when the code below is executed.
With ThisWorkbook.Sheets("table").Cells(27 + n - 1, 2)
.Activate
End With
The first line evaluates to:
ThisWorkbook.Sheets("table").Cells(27,2)
--- Cell B27, which is a merger of Cells B27:M27 --- in this case.
I get the following error: 1004: Activate method of Range class
failed.
Any idea why I am getting this error? Thanks, Alan
With ThisWorkbook.Sheets("table").Cells(27 + n - 1, 2)
.Activate
End With
The first line evaluates to:
ThisWorkbook.Sheets("table").Cells(27,2)
--- Cell B27, which is a merger of Cells B27:M27 --- in this case.
I get the following error: 1004: Activate method of Range class
failed.
Any idea why I am getting this error? Thanks, Alan