Hi Karen,
While that is what the heading of the column says, I believe that it really
only applies to the files in the folder. If you right click on the folder
itself and select properties, you will see that the date shown under the
Date Modified heading is the same as the "Created:" date in the Properties
dialog.
The following is another way to enable the user to browse for a folder and
to return the path and the "modified = created" date of the folder:
Dim oShell As Shell32.Shell
Dim oFolder As Shell32.Folder
Dim ofolderitem As Shell32.FolderItem
Dim EverythingOK As Boolean
EverythingOK = False
Set oShell = New Shell32.Shell
Set oFolder = oShell.BrowseForFolder(0, "Select ", 0)
On Error GoTo NoPath
MsgBox oFolder.Self.Path
MsgBox oFolder.Self.ModifyDate
EverythingOK = True
NoPath:
Set oFolder = Nothing
Set oShell = Nothing
If EverythingOK Then Exit Sub
On Error GoTo 0
MsgBox "Action cancelled by user.", vbExclamation, "Cancelled"
For the above to work, you will need to set a reference to the Microsoft
Shell Controls and Automation library under Tools>References in the VBE.
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
Karen said:
Doug,
When I look in Explorer it lists the folder name, its size and the
modified
date. I need the date or perhaps the date of the first file in the
directory. Any ideas?