Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2008

Tip: Looking for answers? Try searching our database.

Select an empty cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patrick C. Simonds - 21 Jan 2008 04:39 GMT
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.
carlo - 21 Jan 2008 04:44 GMT
Something like that

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

On Jan 21, 1:39 pm, "Patrick C. Simonds" <ordnan...@comcast.net>
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.
Patrick C. Simonds - 21 Jan 2008 05:05 GMT
That does not move down to the first empty cell in column C.

Something like that

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

On Jan 21, 1:39 pm, "Patrick C. Simonds" <ordnan...@comcast.net>
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.
FSt1 - 21 Jan 2008 05:24 GMT
hi
try this...
Range("C6").end(xldown).offset(0,-1).select

regards
FSt1

> That does not move down to the first empty cell in column C.
>
[quoted text clipped - 9 lines]
> > column
> > B of that row.
carlo - 21 Jan 2008 05:39 GMT
On Jan 21, 2:05 pm, "Patrick C. Simonds" <ordnan...@comcast.net>
wrote:
> That does not move down to the first empty cell in column C.
>
[quoted text clipped - 12 lines]
>
> - 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.