adamdynamic
New Member
- Joined
- Dec 12, 2011
- Messages
- 42
Hey,
I'm just learning VBA and can't seem to find a solution to this (no doubt easy) problem on the internet, I'm hoping someone here can help me?
I am trying to populate a row of cells in a worksheet using a 'For/Next' command over the values found in a table column on a different sheet. The closest I can get from googling the problem is below, can anyone tell me what I'm obviously doing wrong?
I know I could just use an explicit range, I am keen to use a table to store (and reference) the data if I can. Any help would be appreciated!
Thanks,
Adam
I'm just learning VBA and can't seem to find a solution to this (no doubt easy) problem on the internet, I'm hoping someone here can help me?
I am trying to populate a row of cells in a worksheet using a 'For/Next' command over the values found in a table column on a different sheet. The closest I can get from googling the problem is below, can anyone tell me what I'm obviously doing wrong?
I know I could just use an explicit range, I am keen to use a table to store (and reference) the data if I can. Any help would be appreciated!
Code:
Worksheets(WS_Test).Cells(1, i).Value = Worksheets(WS_DataSourcesInput).ListObjects("TableSourcesInput").ListColumns(2).ListRows(i).Range.Value
Thanks,
Adam