dpaton05
Well-known Member
- Joined
- Aug 14, 2018
- Messages
- 2,352
- Office Version
- 365
- 2016
- Platform
- Windows
I have some code where I assign values to variables:
What is wrong with the syntax of the last 2 lines?
Thanks
Code:
'assign values to variables
Combo = Worksheets("Home").Range("Y5")
LastRow = Worksheets(Combo).Cells(Rows.Count, "A").End(xlUp).Row + 1 'number of first empty row in column A of Combo
TableNumberRows = Worksheets("home").ListObjects("tblCosting").Rows(Rows.Count).Row 'specific row in tblCosting
tblRows = ListObjects("tblCosting").ListRows 'number of rows in tblCosting
What is wrong with the syntax of the last 2 lines?
Thanks