Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim fso
Dim path
Dim oFolder
Dim oSubFolder
Const OverwriteExisting = True
Set fso = createobject("Scripting.FileSystemObject")
Doc = "E:\FISK\DocumentName.doc"
Path = "E:\Users"
Set oFolder = fso.GetFolder(Path)
Set colSubfolders = oFolder.Subfolders
For Each oSubfolder in colSubfolders
fso.CopyFile Doc , path & "\" & oSubFolder.Name & "\", OverwriteExisting
Next
Doc = "E:\FISK\DocumentName.doc"
FileName = InputBox("Enter the file name including extension","What File?")
Doc = "E:\FISK\" & FileName
YearPrompt = InputBox("Enter 2 Digit Year to Copy File To","What Year?")
For Each oSubfolder in colSubfolders
fso.CopyFile Doc , path & "\" & oSubFolder.Name & "\", OverwriteExisting
Next
For Each oSubfolder in colSubfolders
If Left(oSubFolder.Name, 2) = YearPrompt Then
fso.CopyFile Doc , path & "\" & oSubFolder.Name & "\", OverwriteExisting
End If
Next