Simple Macro... i guess

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

Guest

Hi everyone,

I´m a noob at VBA, so sorry if i offend anyone:)

I want a macro that goes to the last written cell of a column.
I tried:

Sub Macro 1

Max(Range("C:C")).Select

End Sub

Wich obviously didn´t work. In column C i had to insert the function
IF(B="";"";row()) in order to have the maximum value matching the last
written cell in column B.
I wanted that macro to send me to the maximum value of column C :)

Best Regards
 
Hi,

This would select the last used cell in column C

Range("C" & Range("C65536").End(xlUp).Row).Select

Mike
 
cells(rows.count,"c").end(xlup).select
but selections are usually NOT necessary OR desirable.
 

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