Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 342
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting Cells Dynamically in Different Rows [email protected] Excel Programming 9 April 28th 07 06:41 PM
Selecting a range of cells, how to ? Luc Excel Programming 1 February 23rd 07 08:04 PM
Pivottable - dynamically changing the range of cells Todd1 Excel Discussion (Misc queries) 1 March 28th 06 06:22 PM
dynamically select a range of cells for use in a formula isofuncurves Excel Worksheet Functions 1 February 2nd 06 01:34 AM
How can I dynamically eliminate blank cells in a given range in E. Scott Steele Excel Worksheet Functions 6 December 17th 04 03:23 AM


All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"