Quote:
Originally Posted by Shasur
Hi
Can you brief what this macro is intended to do..it would be helpful
Regards
Shasur
|
Thanks for reply dear friend, I want to put comma for each cells that contains value in range selected.
For last cell which contains value, i dont want to put a comma.
What should I code, valiue is not_last_cell in macro ?
With Selection
For Each r In Selection
If r.Value not_last_cell Then
r.Value = " '" & r.Value & "'" & ","
Else
r.Value = " '" & r.Value & "'"
Endif
Next
End With
Example output.
'No',
'Comma',
'at',
'Last',
'Cell'

---see no comma for value at last cell---
Thanks buddy..