[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 764
  • 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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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