Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Iam trying to create a loop that searches through a table of columns
and rows to zero and negative values. My columns portion of the code is causing an error. How should I change the code to have it work properly. Sub Search() LastColumn = "R" NewColumnCount = "F" For ColumnCount = NewColumnCount To LastColumn LastRow = 54 NewRowCount = 38 For RowCount = NewRowCount To LastRow If Range(ColumnCount & RowCount) < 0 Then Range(ColumnCount & RowCount) = 0 NewRowCount = NewRowCount + 2 End If Next RowCount NewColumnCount = NewColumnCount + 2 Next ColumnCount End Sub Frank |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rows to columns in a table or pivot table | Excel Discussion (Misc queries) | |||
how to interchange rows to columns & columns to rows in a table | Excel Discussion (Misc queries) | |||
Loop through columns and then rows | Excel Programming | |||
Addition of rows in table with loop | Excel Programming | |||
How do I delete rows and columns in With With End Loop? | Excel Programming |