Hello people!
I have the following piece of code, that gets error 400:
However, if I uncomment the third line, it works perfectly. Any ideas how to make it work, without using the activation of the spreadsheet?
I have the following piece of code, that gets error 400:
Code:
public sub TestMe
Dim range_for_analysis As Range
'tbl_master.Activate
Set range_for_analysis = tbl_master.Range(Cells(current_row, STARTING_FROM_COLUMN), Cells(current_row, calendar_cols + COLUMNS_NOT_TOUCHED))
end sub
However, if I uncomment the third line, it works perfectly. Any ideas how to make it work, without using the activation of the spreadsheet?