Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to select range based on cell not being blank


I am working on the attached worksheet. Some pay periods, there may be
300 employees being paid, and others there may be 100. What I need to
be able to do is to Select the range A6 through X6 for as many rows as
have data based in in Column R6:R1000. Most of the cells in the range
A6 to X1000 have formulas in them. I figured I would use column R as a
basis for determinining the last row that has values because there is
no formula in that columm. Once the range that has information
inserted in it is selected, I need to sort it in Ascending order based
on the name in column B6 to B whatever the last cell with data
entered.

I can record a macro, but my problem is that the data is not static.
Ergo, I am asking for the macro to select the last cell in column R
that has data in it.

I hope this is understandable.

Thanks for any help offered.


--
neb
------------------------------------------------------------------------
neb's Profile: http://www.excelforum.com/member.php...o&userid=17597
View this thread: http://www.excelforum.com/showthread...hreadid=388755

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
how can I select a range of cells based on a value of a cell? grigoras victor Excel Discussion (Misc queries) 1 June 26th 06 04:55 PM
Select cell from range based on input in excel xp dingy101 Excel Discussion (Misc queries) 3 November 20th 05 12:05 AM
macro select next blank cell in a row raph_baril Excel Programming 2 June 2nd 05 07:50 PM
Select a range of columns based on active cell Tom Ogilvy Excel Programming 0 November 10th 03 05:09 PM
I need to determine a cell range based on a blank cell Katrina Excel Programming 1 July 3rd 03 09:11 PM


All times are GMT +1. The time now is 08:36 AM.

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"