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.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
		

Sub M_snb()
  Dim myPath As String
  Dim myFile As String
  Dim cnt As Integer
'PRm
    Set fs = CreateObject("scripting.filesystemobject")
    myPath = SelectFolder()
    'M_snb_000 "G:\OF"
    'M_snb_000 "G:\OF", True
    
    M_snb_000 myPath
    M_snb_000 myPath, True
'RUN
  sn = Split(Mid(c02, 2), vbLf)
  For Each it In sn
    For Each it1 In fs.GetFolder(it).Files
      it1.Move it1.ParentFolder.ParentFolder & "\" & it1.Name
    Next
    fs.DeleteFolder it
  Next
End Sub
Sub M_snb_000(c00, Optional b As Boolean)
    If UBound(Split(c00, "\")) > UBound(Split(c01, "\")) Then c01 = c00
    If UBound(Split(c00, "\")) = UBound(Split(c01, "\")) And b Then c02 = c02 & vbLf & c00
    For Each it In fs.GetFolder(c00).subfolders
        M_snb_000 it, b
    Next
End Sub
Function SelectFolder() As String
    Dim fldr As FileDialog
    Dim sItem As String
    Set fldr = Application.FileDialog(msoFileDialogFolderPicker)
    With fldr
        .Title = "Select a Folder"
        .AllowMultiSelect = False
        .InitialFileName = Application.DefaultFilePath
        If .Show <> -1 Then GoTo NextCode
        sItem = .SelectedItems(1)
    End With
NextCode:
    SelectFolder = sItem
    Set fldr = Nothing
End Function
	Dim fs
Sub M_snb()
    Set fs = CreateObject("scripting.filesystemobject")
    With Application.FileDialog(4)
       .InitialFileName = Application.DefaultFilePath
       If .Show Then myPath = .SelectedItems(1)
     End With
    
    M_snb_000 myPath
    M_snb_000 myPath, True
  
  sn = Split(Mid(c02, 2), vbLf)
  For Each it In sn
    For Each it1 In fs.GetFolder(it).Files
      If Dir(it1.ParentFolder.ParentFolder & "\" & it1.Name) <> "" Then c03 = "_Q_"
      it1.Move it1.ParentFolder.ParentFolder & "\" & c03 & it1.Name
      c03 = ""
    Next
    fs.DeleteFolder it
  Next
End Sub
Sub M_snb_000(c00, Optional b As Boolean)
    If UBound(Split(c00, "\")) > UBound(Split(c01, "\")) Then c01 = c00
    If UBound(Split(c00, "\")) = UBound(Split(c01, "\")) And b Then c02 = c02 & vbLf & c00
    For Each it In fs.GetFolder(c00).subfolders
        M_snb_000 it, b
    Next
End Sub
	We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.