filmov
tv
Excel VBA - How to Loop Through Folders and Subfolders
Показать описание
Excel VBA Learn how to loop through folders and subfolders
The code used in this video:
Sub SetFolders()
Dim path As String
Dim folder As String
Dim row As Integer
path = "C:\Weekly Reports\"
folder = Dir(path, vbDirectory)
row = 1
Do While folder ""
If folder "." And folder ".." Then
If (GetAttr(path & folder) And vbDirectory) = vbDirectory Then
Cells(row, 1) = path & folder
row = row + 1
End If
End If
folder = Dir()
Loop
End Sub
The code used in this video:
Sub SetFolders()
Dim path As String
Dim folder As String
Dim row As Integer
path = "C:\Weekly Reports\"
folder = Dir(path, vbDirectory)
row = 1
Do While folder ""
If folder "." And folder ".." Then
If (GetAttr(path & folder) And vbDirectory) = vbDirectory Then
Cells(row, 1) = path & folder
row = row + 1
End If
End If
folder = Dir()
Loop
End Sub
Excel Macros & VBA - Tutorial for Beginners
Learn Excel VBA to Automate Anything
Excel VBA tutorial for beginners: The Visual Basic Editor (VBE)
Excel VBA - Write a Simple Macro
Excel VBA Beginner Tutorial
How to Create & Use Excel Macros (Real world example)
Excel VBA Advanced Tutorial
Excel VBA Explained for Beginners
Excel VBA | VBA Sorting | VBA Automation | VBA to Sort data in Excel
Learn VBA & Excel Macros in 20 minutes - with code samples 👨💻
Excel VBA: Einsteiger Tutorial deutsch (Grundlagenkurs)
Excel Visual Basic (VBA) for Beginners - Part 1 of 4: Buttons and Macros
How to Declare (Dim) and Set VBA Variables (use data types correctly)
How to Start Using VBA | Enable Visual Basic in Excel | Get Developer Tab | Programming in Excel
Excel 2019 VBA Full Course Tutorial (7+ Hours)
How to Create Macros in Excel Tutorial
Excel VBA Expert Tutorial
Excel 2021 VBA Full Course Tutorial (6+ Hours)
Excel VBA: How to Sort Data with VBA Macro
EXCEL VBA Basics Part 1- Complete Series | Advance Excel Tutorial | What is VBA | How to Start VBA?
Excel VBA: Referring to Ranges & Writing to Cells (Range, Cells, Offset, Names)
Do You Need to SWITCH from Excel VBA Macros to Office Scripts?
VBA to BROWSE & COPY Data from SELECTED File in Excel
How to Design and Code an Excel VBA Application Like a Pro
Комментарии