Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Tom, Thanks for the help. I figured it out. BTW: My code for plotting the array on a worksheet is really slow... Any ideas? 'Plot the values R1 = 22 R2 = 22 Salary = 22 For a = 1 To UBound(TheArray) varStart = TheArray(a, 1) varStop = TheArray(a, 2) strName = TheArray(a, 3) If varStart = "" Then GoTo Bottom If Application.WorksheetFunction.IsText(varStart) = True Then GoTo Bottom 'Determine which side and spacing intCount = intCount + 1 If Not Lunch Then If varStart = 0.458 Then If bolPlotRight Then R2 = R2 + 2 End If R1 = R1 + 2 Lunch = True End If End If If Not After Then If varStart = 0.58 Then If bolPlotRight Then R2 = R2 + 2 End If Salary = R1 R1 = R1 + 12 After = True End If End If If Not Dinner Then If varStart = 0.708 Then If bolPlotRight Then R2 = R2 + 2 End If R1 = R1 + 2 Dinner = True End If End If If Not Late Then If varStart = 0.833 Then If bolPlotRight Then R2 = R2 + 2 End If R1 = R1 + 2 Late = True End If End If DayShift: If R1 = 74 Then bolPlotRight = True GoTo PlotRight End If PlotLeft: 'Place names and Times Range("B" & R1).Value = varStart Range("C" & R1).Value = varStop Range("D" & R1).Value = strName R1 = R1 + 2 PlotRight: If Not bolPlotRight Then GoTo Bottom 'Place names and Times Range("BE" & R2).Value = varStart Range("BF" & R2).Value = varStop Range("BG" & R2).Value = strName R2 = R2 + 2 Bottom: Application.StatusBar = "Please wait ... " & Format(intCount / intStatus, "percent") & " Complete." Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting within an array | Excel Discussion (Misc queries) | |||
Array Sorting in VB | Excel Programming | |||
Sorting 2D portion of 5D Array | Excel Programming | |||
Sorting 2D Array | Excel Programming | |||
Sorting a 2-dimensional array | Excel Programming |