Message 1 of 5

Not applicable
08-28-2014
04:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have six user multivalue parameters (top_reel_1 - top_reel_6). I've written a loop that works its way through these parameters moving the contents upward so that there are never any empty ("N/A") parameters above a filled one. The loop works as expected, with one exception. When a parameter is changed in the drop down box, the rule moves it to the correct position but then doesn't change the original cell to empty.
Dim i As Integer For i = 1 To 6 If top_reel_6 = "N/A" Then Else If top_reel_5 = "N/A" Then top_reel_5 = top_reel_6 top_reel_6 = "N/A" End If End If If top_reel_5 = "N/A" Then Else If top_reel_4 = "N/A" Then top_reel_4 = top_reel_5 top_reel_5 = "N/A" End If End If If top_reel_4 = "N/A" Then Else If top_reel_3 = "N/A" Then top_reel_3 = top_reel_4 top_reel_4 = "N/A" End If End If If top_reel_3 = "N/A" Then Else If top_reel_2 = "N/A" Then top_reel_2 = top_reel_3 top_reel_3 = "N/A" End If End If If top_reel_2 = "N/A" Then Else If top_reel_1 = "N/A" Then top_reel_1 = top_reel_2 top_reel_2 = "N/A" End If End If Next i
Solved! Go to Solution.