Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Select an empty cell

I need a piece of code which will look at column C and find the first empty
cell in the column (must be below row 6) and then select the cell in column
B of that row.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Select an empty cell

Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select


On Jan 21, 1:39*pm, "Patrick C. Simonds"
wrote:
I need a piece of code which will look at column C and find the first empty
cell in the column (must be below row 6) and then select the cell in column
B of that row.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 343
Default Select an empty cell

That does not move down to the first empty cell in column C.

"carlo" wrote in message
...
Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select


On Jan 21, 1:39 pm, "Patrick C. Simonds"
wrote:
I need a piece of code which will look at column C and find the first
empty
cell in the column (must be below row 6) and then select the cell in
column
B of that row.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Select an empty cell

hi
try this...
Range("C6").end(xldown).offset(0,-1).select

regards
FSt1

"Patrick C. Simonds" wrote:

That does not move down to the first empty cell in column C.

"carlo" wrote in message
...
Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select


On Jan 21, 1:39 pm, "Patrick C. Simonds"
wrote:
I need a piece of code which will look at column C and find the first
empty
cell in the column (must be below row 6) and then select the cell in
column
B of that row.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default Select an empty cell

On Jan 21, 2:05*pm, "Patrick C. Simonds"
wrote:
That does not move down to the first empty cell in column C.

"carlo" wrote in message

...
Something like that

cells(cells(6,3).end(xldown).row + 1, 2).select

On Jan 21, 1:39 pm, "Patrick C. Simonds"
wrote:



I need a piece of code which will look at column C and find the first
empty
cell in the column (must be below row 6) and then select the cell in
column
B of that row.- Hide quoted text -


- Show quoted text -


Yeah, it does not, because your request was:
I need a piece of code which will look at column C and find the first
empty
cell in the column (must be below row 6) and then select the cell in
column
B of that row.

And that's what my code does!

If you want to move down to the first empty cell in column c and
select this cell you could do this:
cells(cells(6,3).end(xldown).row + 1, 3).select
which basically is the same but the last number has been changed from
2 (column B) to 3 (column C)

hth
Carlo


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 next empty cell ASU Excel Discussion (Misc queries) 0 September 15th 06 08:01 PM
How to select automaticly the last cell not empty of a area? Bigmas Excel Worksheet Functions 1 May 12th 06 02:50 PM
Function to select second-to-last non-empty cell sandr5 Excel Worksheet Functions 0 March 21st 06 03:13 PM
select first empty cell in a range Shawn Excel Programming 2 September 13th 05 12:14 AM
Select Until Empty Cell From VBA Code Eric Excel Programming 1 February 11th 05 02:09 PM


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