P
PeterS
For iColCnt = 1 To 49
'reset to startingcell
Call UtilitiesQuickSelectStartCell("Numbers", "DrawsTableStart")
'loop through columns
Call RangeTableActiveCellToSpecificRow(iDrawsToUse, 1, 1, iColCnt)
On Error Resume Next
I am trying to loop through a series of columns. I select a range of
cells within each column, if the cells have numbers in them. I find
that when a column has no cells with numeric values the range of cells
from teh previous column is being used. Could someone tell me how to
prevent thios?
thianks
For iColCnt = 1 To 100
'select the cells with numbers
Set rngCellsWithData = Selection.SpecialCells(xlConstants,
xlNumbers)
iTest = rngCellsWithData.SpecialCells(xlConstants,
xlNumbers).Count
If (rngCellsWithData.SpecialCells(xlConstants, xlNumbers).Count >
0) Then
'process the cells
End If
Next
'reset to startingcell
Call UtilitiesQuickSelectStartCell("Numbers", "DrawsTableStart")
'loop through columns
Call RangeTableActiveCellToSpecificRow(iDrawsToUse, 1, 1, iColCnt)
On Error Resume Next
I am trying to loop through a series of columns. I select a range of
cells within each column, if the cells have numbers in them. I find
that when a column has no cells with numeric values the range of cells
from teh previous column is being used. Could someone tell me how to
prevent thios?
thianks
For iColCnt = 1 To 100
'select the cells with numbers
Set rngCellsWithData = Selection.SpecialCells(xlConstants,
xlNumbers)
iTest = rngCellsWithData.SpecialCells(xlConstants,
xlNumbers).Count
If (rngCellsWithData.SpecialCells(xlConstants, xlNumbers).Count >
0) Then
'process the cells
End If
Next