Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
sourceRange.Copy
SourceRange.Offset(IIf(rnum = 1, 0, 1)).Copy
With mybook.Worksheets(1)
.AutoFilterMode = False
[B] if bCopyTitleRow then
FirstCell = "A6" 'header rij begint op A6 en data op A7
bCopyTiteRow = False
else
FirstCell = "A7" 'header rij begint op A6 en data op A7
end if[/B]
Set sourceRange = .Range(FirstCell & ":" & RDB_Last(3, .Cells))
'Test if the row of the last cell >= then the row of the FirstCell
If RDB_Last(1, .Cells) < .Range(FirstCell).Row Then
Set sourceRange = Nothing
End If
End With
Sub M_snb()
sn = Split(CreateObject("wscript.shell").exec("cmd /c dir ""G:\OF\*.xlsx"" /s/b").stdout.readall, vbCrLf) ' 1
For j = 0 To UBound(sn)-1
With GetObject(sn(j)) ' 2
sp = .Sheets(1).UsedRange.Offset(Abs(j > 0)) ' 3 + 4
.Close 0 ' 5
End With
Sheet1.Cells(Rows.Count, 1).End(xlUp).Offset(Abs(j > 0)).Resize(UBound(sp), UBound(sp, 2)) = sp ' 6
Next
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.