Going through each item in a sheet

  • Thread starter Thread starter ajitpalsingh200
  • Start date Start date
A

ajitpalsingh200

Dear Mangesh

I modified your code so that it counts the number of items in Cell A
But it displayed a mitmatch type error

Dim j As Integer

j = 0

Range("A1").Select

For i = 1 To Range(Selection, Selection.End(xlDown)).Count
MsgBox Cells(i, 1)
j = j + 1

Next

MsgBox "Total is " + j
End Su
 

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