Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry it is my oversight...the below is to extract folders alone...
-- If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: MyPath = "c:\" MyName = Dir(MyPath, vbDirectory) Do While MyName < "" If (GetAttr(MyPath & MyName) And vbDirectory) = vbDirectory Then MsgBox(MyName) End If MyName = Dir() Loop If this post helps click Yes --------------- Jacob Skaria "pjryan" wrote: I am using dir(path, vbdirectory) to return the names of folders and files, but instead of getting the folder name, I am getting "." How can I remedy this. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match file names listed in column with file names in folder | Excel Programming | |||
VBA help: need folder names | Excel Programming | |||
How to List the names of the subfolders present in the folder (path of folder is given in the textbox by user ) | Excel Programming | |||
How to Get Folder Names | Excel Programming | |||
Change names of files in a folder to match names in Excel Column | Excel Programming |