Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike W
 
Posts: n/a
Default Locating first blank cell

I am looking for a macro that will select the first blank (empty) cell in a
given column please.

Thanks,

Mike


  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi Mike

Sub test()
Dim GivenColumn As Long
GivenColumn = 1
Columns(GivenColumn).Find(What:="", _
After:=Cells(1, GivenColumn), _
LookAt:=xlWhole).Select
End Sub

HTH. Best wishes Harald

"Mike W" skrev i melding
...
I am looking for a macro that will select the first blank (empty) cell in

a
given column please.

Thanks,

Mike




  #3   Report Post  
Mike W
 
Posts: n/a
Default

Brilliant Harald, just what I was trying to do myself, thank you.

Mike

"Harald Staff" wrote in message
...
Hi Mike

Sub test()
Dim GivenColumn As Long
GivenColumn = 1
Columns(GivenColumn).Find(What:="", _
After:=Cells(1, GivenColumn), _
LookAt:=xlWhole).Select
End Sub

HTH. Best wishes Harald

"Mike W" skrev i melding
...
I am looking for a macro that will select the first blank (empty) cell

in
a
given column please.

Thanks,

Mike






  #4   Report Post  
prizm1
 
Posts: n/a
Default

Harald Staff wrote:
Hi Mike

Sub test()
Dim GivenColumn As Long
GivenColumn = 1
Columns(GivenColumn).Find(What:="", _
After:=Cells(1, GivenColumn), _
LookAt:=xlWhole).Select
End Sub

HTH. Best wishes Harald

"Mike W" skrev i melding

If the column cell contains space characters instead of an empty string,
how would TRIM$ work inside this macro to find the first empty or
space(s)-only filled cell in the given column?





...

I am looking for a macro that will select the first blank (empty) cell in


a

given column please.

Thanks,

Mike





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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
Go to first blank cell Curt D. Excel Worksheet Functions 4 February 28th 05 10:27 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 12:52 AM.

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"