Hi Mary,
The reason your code didn't work is that the Cells objects are improperly qualified. By putting the dot in front of them you are implying that you have them between With..End With statements. Here's how the statement should look:
With Worksheets("Sheet3")
...Source:=.Range(.Cells(1, 1), .Cells(counter, 2))
End With
Note that this qualifies ALL the ranges (a cell is a special case of a range--there is no cell object) with the worksheet.
I added the "..." in front of Source since I'm assuming that it is the Source argument of the SetSourceData method that is not shown.
I hope this helps.
Damon
Hi Mary,
The reason your code didn't work is that the Cells objects are improperly qualified. By putting the dot in front of them you are implying that you have them between With..End With statements. Here's how the statement should look:
With Worksheets("Sheet3")
...Source:=.Range(.Cells(1, 1), .Cells(counter, 2))
End With
Note that this qualifies ALL the ranges (a cell is a special case of a range--there is no cell object) with the worksheet.
I added the "..." in front of Source since I'm assuming that it is the Source argument of the SetSourceData method that is not shown.
I hope this helps.
Damon