Macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi there,

i want that a macro select the first cell empty in a row, how can i do that?

can anyhone help me?
 
Any particular row?
For a nonmacro way, if the row is selected. Press Home on the keyboard. Then
press Ctrl+Right Arrow. This will select the first cell in the row. If it's
blank, you're done. If it's not blank, press Ctrl+Right Arrow followed by the
right arrow.

One macro option, if the row in question contains the active cell:

Sub FBlank()
Dim r As Range
Set r = Range("A" & ActiveCell.Row)
Do Until r = ""
Set r = r.Offset(0, 1)
Loop
r.Select
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top