Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Dynamic range

Hello:

My problem:
I would like to be able to dynamicaly determine the range of cells that
have data. This data is generated by a database query. I have the
script clear the old data before a new database query.

Is it possible to do that in excel?

Thanks,
--D

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Dynamic range

Range("A1").currentRegion.Select

--
Regards,
Tom Ogilvy


wrote in message
oups.com...
Hello:

My problem:
I would like to be able to dynamicaly determine the range of cells that
have data. This data is generated by a database query. I have the
script clear the old data before a new database query.

Is it possible to do that in excel?

Thanks,
--D



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Dynamic range

It depends on how your worksheet is organized. If the data is
always enclosed between blank rows/columns, you can use

Dim DataRange As Range
Set DataRange = Range("A1").CurrentRegion

to get the rectangular region of data.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




wrote in message
oups.com...
Hello:

My problem:
I would like to be able to dynamicaly determine the range of
cells that
have data. This data is generated by a database query. I have
the
script clear the old data before a new database query.

Is it possible to do that in excel?

Thanks,
--D



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Dynamic range

Thank you guys!
Very helpfull sugestions, exactly what I was looking for

Thanks,
-D

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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
copying dynamic range based on cell outside of range xcelelder Excel Programming 3 September 29th 05 05:08 PM
select dynamic range with dynamic start point Juli Excel Programming 1 August 31st 05 12:05 AM
Excel 2000 VBA - Set Print Range in dynamic range sub_pop[_5_] Excel Programming 2 July 27th 04 08:01 PM
Dynamic Range Tony Reflinski Excel Programming 2 June 28th 04 11:44 AM


All times are GMT +1. The time now is 12:13 PM.

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

About Us

"It's about Microsoft Excel"