Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a workbook that I use several For Next loops in. I was wonderin if someone could explain the issues with using or not using th vairable after the Next. For example I have: Count = 0 For Each cell In Selection Count = Count + 1 cell.Value = "D" & Count Next If I put "Cell" after Next it works the same way. Count = 0 For Each cell In Selection Count = Count + 1 cell.Value = "D" & Count Next cell Which is the best programming style? I would think adding the variabl name after the Next would be correct. Thanks Fre -- Fred ----------------------------------------------------------------------- Fredg's Profile: http://www.excelforum.com/member.php...fo&userid=2632 View this thread: http://www.excelforum.com/showthread.php?threadid=46675 |
Thread Tools | Search this Thread |
Display Modes | |
|
|