Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Referencing a Range

I have in the past referenced ranges in the following way
rng = range(cells(a,b),cells(c,d))
The reason I do it this way is that I know the first cell, I don't know the
last. The "A1" reference does not work for that, unless I were to build the
string on the fly, which seems to be an unnecessary pain.

Problem: this way of refencing a range if very flaky, I get all sorts of
weird errors

Any thoughts?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Referencing a Range

Hi Sanj,

What sort of weird errors in what circumstances?

Can you give an example which can be reproduced?


---
Regards,
Norman



"Sanj" wrote in message
...
I have in the past referenced ranges in the following way
rng = range(cells(a,b),cells(c,d))
The reason I do it this way is that I know the first cell, I don't know
the
last. The "A1" reference does not work for that, unless I were to build
the
string on the fly, which seems to be an unnecessary pain.

Problem: this way of refencing a range if very flaky, I get all sorts of
weird errors

Any thoughts?



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
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
range referencing lakey13[_6_] Excel Programming 0 November 9th 04 04:30 PM
range referencing lakey13[_5_] Excel Programming 1 November 9th 04 04:03 PM
range referencing lakey13[_4_] Excel Programming 0 November 9th 04 03:38 PM
range referencing lakey13[_3_] Excel Programming 1 November 5th 04 10:46 PM


All times are GMT +1. The time now is 01:45 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"