selecting cells dynamically (range/cells...)

S

sebastian1.schmidt

Hi again,
here the short version of my problem: I get an error when writing

With ThisWorkbook.Worksheets(sheetname)
If .Cells(delivery_period_row, localloop).Value = deliveryperiod
Then
source_range
= .Range(.Cells(1,localloop), .Cells(max_timeseries_length,
localloop))

I get an error in the last line, stating "object not defined" (or
similar). What do I do wrong?
 
T

TomPl

Make sure the sheet name is in quotes.
ad the word "set " to the front of the statement "source_range = ..."

I think that will work.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top