Støv, fibre og metalliske partikler kan påvirke både uptime, levetid og driftssikkerhed. Derfor arbejder flere datacentre systematisk med contamination control.
Function CopyFilter(readSheet, height, width) Dim End_row As Long Dim y As Long Dim RowArray() As Variant Dim DimY() As Variant Dim DimX() As Variant Dim r2 As Integer
ReDim DimY(height) ReDim DimX(width)
r2 = 1 For r = 2 To height If Sheets(readSheet).Rows(r).Hidden = False Then Sheets("Ark2").Rows(r2).Value = Sheets(readSheet).Rows(r).Value r2 = r2 + 1 End If Next
For y = 1 To height For x = 1 To width DimX(x) = Worksheets("Ark2").Cells(y, x) Next DimY(y) = DimX() Next For y = 1 To height For x = 1 To width Worksheets("Ark3").Cells(y, x) = DimY(y)(x) Next DimY(y) = DimX() Next
Function CopyFilter(readSheet, height, width) Dim End_row As Long Dim y As Long Dim RowArray() As Variant Dim DimY() As Variant Dim DimX() As Variant Dim r2 As Integer
ReDim DimY(height) ReDim DimX(width)
newY = 1 For y = 2 To height If Sheets(readSheet).Rows(y).Hidden = False Then Sheets("Ark2").Rows(newY).Value = Sheets(readSheet).Rows(y).Value For x = 1 To width DimX(x) = Sheets(readSheet).Cells(y, x) Next DimY(y) = DimX() newY = newY + 1 End If Next
Sådan, så kører det hurtigt, havde lige glemt at fjerne en linie:
Function CopyFilter(readSheet As String, height As Long, width As Long) Dim RowArray() As Variant Dim DimY() As Variant Dim DimX() As Variant Dim r2 As Integer
ReDim DimY(height) ReDim DimX(width)
newY = 1 For y = 2 To height If Sheets(readSheet).Rows(y).Hidden = False Then For x = 1 To width DimX(x) = Sheets(readSheet).Cells(y, x) Next DimY(y) = DimX() newY = newY + 1 End If Next
CopyFilter = DimY()
End Function
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.