Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Find the first empty column

I would like a function similar to below, but for the
first empty column within row 36.

Below is what I use for the first empty row.

last_row = wks_Stock.Cells(Rows.Count, 1).End(xlUp).Row


Thanks,

Simon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Find the first empty column

Hi Simon,

Try:

Cells(36, Columns.Count).End(xlToLeft)(1, 2)

---
Regards,
Norman



"Simon" wrote in message
...
I would like a function similar to below, but for the
first empty column within row 36.

Below is what I use for the first empty row.

last_row = wks_Stock.Cells(Rows.Count, 1).End(xlUp).Row


Thanks,

Simon



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Find the first empty column

Take a look here to cover all angles when finding the last row/column.

http://www.beyondtechnology.com/geeks012.shtml

Cheers
Nigel

"Simon" wrote in message
...
I would like a function similar to below, but for the
first empty column within row 36.

Below is what I use for the first empty row.

last_row = wks_Stock.Cells(Rows.Count, 1).End(xlUp).Row


Thanks,

Simon



  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Find the first empty column

Thanks,

'ToLeft' - I was using 'Left'


-----Original Message-----
Hi Simon,

Try:

Cells(36, Columns.Count).End(xlToLeft)(1, 2)

---
Regards,
Norman



"Simon" wrote in

message
...
I would like a function similar to below, but for the
first empty column within row 36.

Below is what I use for the first empty row.

last_row = wks_Stock.Cells(Rows.Count, 1).End(xlUp).Row


Thanks,

Simon



.

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
Find first empty cell in column TomHull Excel Discussion (Misc queries) 1 November 9th 09 05:16 AM
Find first empty cell in column TomHull Excel Discussion (Misc queries) 2 November 9th 09 01:37 AM
How to: Find first empty cell in column DW Excel Worksheet Functions 18 October 12th 07 05:57 AM
Find a empty cell in next column Michael Excel Discussion (Misc queries) 3 June 15th 05 02:18 PM
Find Empty Column and paste cell values Mike Excel Programming 6 December 28th 03 08:31 PM


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