Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
selecting cells dynamically (range/cells...)
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? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
selecting cells dynamically (range/cells...)
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 " wrote: 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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Selecting Cells Dynamically in Different Rows | Excel Programming | |||
Selecting a range of cells, how to ? | Excel Programming | |||
Pivottable - dynamically changing the range of cells | Excel Discussion (Misc queries) | |||
dynamically select a range of cells for use in a formula | Excel Worksheet Functions | |||
How can I dynamically eliminate blank cells in a given range in E. | Excel Worksheet Functions |