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

I want to assign a value to F20 or F21 or the last available F cell on the
page. Is there a way of determining which one that is?
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Last empty cell

Hi Myles,

Try:

Dim fFrstEmpty As Range

Set FirstEmpty = Cells(Rows.Count, "F").End(xlUp)(2)

---
Regards,
Norman



"myleslawrence" wrote in message
...
I want to assign a value to F20 or F21 or the last available F cell on the
page. Is there a way of determining which one that is?
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Last empty cell

Works like a champ - thanks

"Norman Jones" wrote in message
...
Hi Myles,

Try:

Dim fFrstEmpty As Range

Set FirstEmpty = Cells(Rows.Count, "F").End(xlUp)(2)

---
Regards,
Norman



"myleslawrence" wrote in message
...
I want to assign a value to F20 or F21 or the last available F cell on the
page. Is there a way of determining which one that is?
Thanks





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
When is a cell empty and how do I empty it. C Brandt Excel Discussion (Misc queries) 5 August 13th 07 05:37 PM
format a cell with a formula so an empty reference cell shows blan M2 Excel Discussion (Misc queries) 3 November 7th 06 10:42 PM
Leaving an empty cell empty GRL Excel Discussion (Misc queries) 4 April 22nd 06 05:47 PM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Empty cell and a the empty String JE McGimpsey Excel Programming 0 September 13th 04 04:12 PM


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