• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Selecting the next available empty cell

odartey

Member
Hi All

I am using this simple macro to pick the next empty cell,the challenge is that when there's no data in the cell the macro runs to the end of the row.
I need help please...
This is what i have.
Need help
Thanks in anticipation for a response
Sub Inputss()
'
' Inputss Macro
'

'
Sheets("Input").Select
Range("D14").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
End Sub
 
Pls choose as per need from below .

Code:
Option Explicit

Sub Inputss()
Range("B" & Rows.Count).End(xlUp)(2).Select
End Sub

or

Code:
Option Explicit

Sub Inputss()
Range("D4").End(xlDown)(2).Select
End Sub
 
Pls choose as per need from below .

Code:
Option Explicit

Sub Inputss()
Range("B" & Rows.Count).End(xlUp)(2).Select
End Sub

or

Code:
Option Explicit

Sub Inputss()
Range("D4").End(xlDown)(2).Select
End Sub
Pls choose as per need from below .

Code:
Option Explicit

Sub Inputss()
Range("B" & Rows.Count).End(xlUp)(2).Select
End Sub

or

Code:
Option Explicit

Sub Inputss()
Range("D4").End(xlDown)(2).Select
End Sub
Thanks So much Deepak.
It served my purpose
Thanks once again
 
Back
Top