Going through each item in a sheet

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

ajitpalsingh200

Oh okk

Mangesh, the spereadsheet im working with have a few sheets in it...Ho
to tell that particular code to count the items in the "results" sheet
 
Worksheets("Result").Range("A1").Select

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

this should work

or Simply

Worksheets("Result").Select

Range("A1").Select
For i = 1 To Range(Selection, Selection.End(xlDown)).Count
MsgBox Cells(i, 1)
Next


- Manges
 

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