Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Coolboy55
 
Posts: n/a
Default Selecting a cell in a range


I want to select the first cell in an empty row in my range. How do I
correct my code? Thanks!

----------

l_LastRow = Sheet5.Cells.Find(What:=" * ", After:=[A1], _
SearchDirection:=xlPrevious).Row
Sheet5.Range("B3", Sheet5.Cells(l_LastRow + 1, 10)).Select

For l_Count = Selection.Rows.Count To 1 Step -1
If WorksheetFunction.CountA(Selection.Rows(l_Count)) = 0 Then
With Range(Cells(Selection.Rows(l_Count), 2).Address)
.Value = 2005
End With
End If
Next


--
Coolboy55
------------------------------------------------------------------------
Coolboy55's Profile: http://www.excelforum.com/member.php...o&userid=26508
View this thread: http://www.excelforum.com/showthread...hreadid=400895

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
How do I change a cell range with a reference cell? Danneskjold Excel Discussion (Misc queries) 2 August 11th 05 07:37 PM
How do I refer a Range to a Cell Mal Excel Worksheet Functions 6 June 7th 05 08:47 AM
Counting spefic cell (not a range) with a value greater than 1 mmock Excel Discussion (Misc queries) 5 April 27th 05 02:34 PM
How can I assign a range starting cell based on a variable locati. feman007 Excel Discussion (Misc queries) 1 March 9th 05 11:41 PM
excel locks up after selecting a cell sandenscot Excel Discussion (Misc queries) 7 January 28th 05 07:27 PM


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