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 all Cells with Data?


I'm writing a VB app to read an excel file that contains a data table. My
goal is to obtain all the column headings and corresponding cell values for
each column in the table.

Is there a simple method available to select a range of cells containing the
data? Other than looping through, and testing each cell...

One sheet may contain data from A1 through K25, and another perhaps from A1
to M15. It'd be nice to use an object method to return the Range A1:K25 in
the first case, and A1:M15 in the other.

Any ideas?

Dave





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Selecting all Cells with Data?

Sheet1.UsedRange

Mike
"dave" wrote in message
...

I'm writing a VB app to read an excel file that contains a data table. My
goal is to obtain all the column headings and corresponding cell values

for
each column in the table.

Is there a simple method available to select a range of cells containing

the
data? Other than looping through, and testing each cell...

One sheet may contain data from A1 through K25, and another perhaps from

A1
to M15. It'd be nice to use an object method to return the Range A1:K25

in
the first case, and A1:M15 in the other.

Any ideas?

Dave







  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Selecting all Cells with Data?


Thanks much.


"Mike Fogleman" wrote in message
...
Sheet1.UsedRange

Mike
"dave" wrote in message
...

I'm writing a VB app to read an excel file that contains a data table.

My
goal is to obtain all the column headings and corresponding cell values

for
each column in the table.

Is there a simple method available to select a range of cells containing

the
data? Other than looping through, and testing each cell...

One sheet may contain data from A1 through K25, and another perhaps from

A1
to M15. It'd be nice to use an object method to return the Range A1:K25

in
the first case, and A1:M15 in the other.

Any ideas?

Dave









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 Yes in data validation for multiple cells Diddy Excel Discussion (Misc queries) 5 July 1st 09 06:07 PM
Selecting data from cells that are 5 rows apart and groung in 1 co Jorge Excel Worksheet Functions 6 January 16th 08 05:12 PM
Selecting data €“ when some cells are empty Flemming Excel Discussion (Misc queries) 0 November 19th 07 11:18 AM
How I print only the cells with data without selecting everytime? tkagate Excel Worksheet Functions 2 May 30th 06 09:32 PM
Selecting data from different cells for a chart Need Help in DC Charts and Charting in Excel 2 March 7th 06 12:00 AM


All times are GMT +1. The time now is 09:34 AM.

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"