Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
We have a series of spreadsheets set up in a sharepoint web folder on our
intranet. I would like to be able to use VBA to access this folder, determine which workbook is the most recent and then open it and continue my processing. So, I have some code posted on this forum to search a folder and list subfolders. The question is, what would I do differently here if the access method has to be http? Sub Finddir(DataPath) Dim test As Object Dim FSO As Object Dim fDir As Object Dim fSubDir As Object Dim i As Long Set FSO = CreateObject("Scripting.FileSystemObject") Set fDir = FSO.GetFolder(DataPath) For Each fSubDir In fDir.SubFolders i = i + 1 Cells(i, "A").Value = fSubDir.Name Next fSubDir End Sub where Datapath is something like DataPath = "http://intranet/sites/Data/Product%20Deployment/" |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to searching for a folder | Excel Discussion (Misc queries) | |||
Searching, matching then searching another list based on the match | Excel Discussion (Misc queries) | |||
Save file in a new folder, but create folder only if folder doesn't already exist? | Excel Programming | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming | |||
Searching through the contents of a Folder of text files | Excel Programming |