prabha_friend
Board Regular
- Joined
- Jun 28, 2011
- Messages
- 95
Data:
C1: 3
B2: 2
D2: 2
A3: 1
E3: 1
B4: 2
D4: 2
c3: 3
C1: 3
B2: 2
D2: 2
A3: 1
E3: 1
B4: 2
D4: 2
c3: 3
Code:
Sub mac()
'MsgBox Selection.Cells.Count
For Each cell In Selection.Cells
MsgBox cell.Address
Next cell
End Sub
Code:
Sub mac1()
'MsgBox Selection.Cells.Count
For i = 1 To Selection.Cells.Count
MsgBox Selection.Cells(i).Address
Next i
End Sub