VBA Syntax Help

  • Thread starter Thread starter Colin Vicary
  • Start date Start date
C

Colin Vicary

Hi Everyone.

I've reached the extent of my very limited knowledge and I can't fin
the answer in "help" anywhere, so I hope you experts can assist.

I'm trying to select all the rows that have content in row K, I'v
already sorted the row and I'm trying to select them all using the cod
below.

When I enter it, it tells me that I should have included a lis
seperator after "1", can anyone tell me what I should have entere
please?

Thanks

Colin

Dim LastK As Long
LastK = ActiveSheet.Cells(Rows.Count, "K").End(xlUp).Row
Rows(1:LastK).Selec
 
Frank

Thanks once again for you help! Your vast knowledge, and you
willingness to share it with others, is amazing.

Thank you

Coli
 

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

Similar Threads

SELECT ALL ROWS IF FIND 2
select row if find word 2
End(xlUp) question 4
Copying data to the next blank row 0
Find last row with data 3
Sorting in code 4
Is not sorting 4
CONDITIONAL HIDE/UNHIDE ROWS 3

Back
Top