Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default select a certain range of data

Scott,

You can do it like this but be aware it is highly unlikely you would need to
select the range to do whatever it is you want to do next

LastRow = Range("A6").End(xlDown).Row
Range("A6:A" & LastRow).Resize(, 3).Select
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Scott" wrote:

I need to write a code that is able to start at cell A6 then find the last
column with data then find the first blank row and set that as my range and
then have that range selected. So, as an example from below, the code would
select A6:C8 and leave out the cells below the blank row.

A B C
6 text-1 text-1 text-1
7 text-2 text-2 text-2
8 text-3 text-3 text-3
9
10 Total xxx

Thank You in advance

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
Select Data Range alexrs2k Excel Discussion (Misc queries) 5 August 4th 09 05:24 PM
how to select and count from a range of data Ajay Excel Discussion (Misc queries) 2 December 10th 08 02:36 PM
select range containing data saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 March 21st 08 12:36 AM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
In data range select final value. skydiving3 Excel Discussion (Misc queries) 2 August 7th 07 07:16 PM


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