• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 767
  • Last Modified:

Find the first empty cell in current range (VB)

How do i find the first empty cell in the current range and make
it the active cell?
0
kiggsondrome
Asked:
kiggsondrome
  • 2
1 Solution
 
amit_gCommented:
For Each oCell In YourRange
    If (oCell.Value = "") Then
        oCell.Select
        Exit For
    End If
Next
0
 
kiggsondromeAuthor Commented:

Thanks!

Works for me like this:

For Each oCell In Selection.Cells
    If (oCell.Value = "") Then
        oCell.Select
        Exit For
    End If
Next



0
 
harfangCommented:
Selection.SpecialCells(xlCellTypeBlanks).Cells(1,1).Select

(°v°)
0
 
harfangCommented:
too late... (^v°)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now