ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Going through each item in a sheet (https://www.excelbanter.com/excel-programming/315973-going-through-each-item-sheet.html)

ajitpalsingh200[_11_]

Going through each item in a sheet
 

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

--
ajitpalsingh20
-----------------------------------------------------------------------
ajitpalsingh200's Profile: http://www.excelforum.com/member.php...fo&userid=1615
View this thread: http://www.excelforum.com/showthread.php?threadid=27586


mangesh_yadav[_169_]

Going through each item in a sheet
 

instead of + use &

- Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=27586



All times are GMT +1. The time now is 11:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com