F
Fredg
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
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