Matthias Pospiech
Matthias Pospiech

Reputation: 3488

vba: define values in series using range with cells

I want to define the vales in a series using a range.

.SeriesCollection(1).Values = Sheets("Data").Range(Cells(2, col), Cells(1002, col))

This however does not work. It fails with error 1004.

Upvotes: 0

Views: 731

Answers (1)

Matthias Pospiech
Matthias Pospiech

Reputation: 3488

The cells were not found. It works now with

Sheets("Data").Range(Sheets("Data").Cells(2, col), Sheets("Data").Cells(1002, col))

Upvotes: 1

Related Questions