how to get the first used cell position in VBA?

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

Guest

I use the (Sheet).UsedRange.Columns.Count in my code, so I need a first used
cell position to copy all the cells to the array.

Excel 2003

Can you leave the hyperlink for the object library here? I can't find it on
MSDN. Thank you in advance!
 
cells(activesheet.usedrange.row,activesheet.usedrange.column)

will give you the first used cell

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Should do Gary.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
ok, thanks bob

--


Gary


Bob Phillips said:
Should do Gary.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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