Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you guys!
Very helpfull sugestions, exactly what I was looking for Thanks, -D |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
copying dynamic range based on cell outside of range | Excel Programming | |||
select dynamic range with dynamic start point | Excel Programming | |||
Excel 2000 VBA - Set Print Range in dynamic range | Excel Programming | |||
Dynamic Range | Excel Programming |