maybe so
![]()
Sub RowColIndex() Dim i As Long, j As Long With Range("C4:E6") For i = 1 To .Rows.Count For j = 1 To .Columns.Count .Cells(i, j).Select MsgBox "RowIndex " & i & "; ColumnIndex " & j Next j Next i End With End Sub
maybe so
![]()
Sub RowColIndex() Dim i As Long, j As Long With Range("C4:E6") For i = 1 To .Rows.Count For j = 1 To .Columns.Count .Cells(i, j).Select MsgBox "RowIndex " & i & "; ColumnIndex " & j Next j Next i End With End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks