Finding next available empty cell in a row

G

Guest

I'm having to transpose a lot of data that are currently arranged in rows to
columns, it's the output of a 1:m data table.

I can't quite find the right syntax that activates the next available cell
in a row above.

Many thanks

Wendy
 
G

Guest

Set the start to the first cell to analyze. This will find the next
available cell in the same column.

Set thecurrentcell = Worksheets("XXXX").Range("XXX")

Do While thecalcedcell.Value <> 0
Set thecalcedcell = thecalcedcell.Offset(1, 0)
Loop
 
B

Bob Phillips

NextFree = Activecell.Offset(-1,0).End(xlToRight)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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

Top