I am getting 'Invalid procedure call or argument error..' when using the following code:
Dim DTTbl As ListObject
Dim rng As Range
Set DTTbl = ThisWorkbook.Worksheets("DataTypes").ListObjects("DataTypes")
Set rng = DTTbl.Range("DataTypes[[ClassProperty]:[DataType]]")
Note that both the worksheet and the table are named 'DataTypes'. The columns 'ClassProperty' & 'DataType' are adjacent.
How can I set the rng to the 'combined area/range' of the 2 columns mentioned using the column names?