Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Im trying to copy the "title" field along with the "filename" into
excel. Im able to copy the filename field via a batch file using the Dir command, but it doesnt allow you to copy the other fields that are in the explorer window. Is there a a way to do this? Thanks in advance |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
I tend to use the Scripting FileSystemObject to get this sort of
info. In VBA, go to the Tools menu, choose References, and select "Microsoft Scripting Runtime". Then, use code like Dim FSO As Scripting.FileSystemObject Dim F As Scripting.File Set FSO = New Scripting.FileSystemObject Set F = FSO.GetFile("H:\Test.txt") Debug.Print F.Path Debug.Print F.Name Debug.Print F.Size ' other attributes of F -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com wrote in message oups.com... Im trying to copy the "title" field along with the "filename" into excel. Im able to copy the filename field via a batch file using the Dir command, but it doesnt allow you to copy the other fields that are in the explorer window. Is there a a way to do this? Thanks in advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
windows explorer to excel | Excel Discussion (Misc queries) | |||
Windows Explorer maximizes over XL 2000, if opened w/ explorer | Excel Discussion (Misc queries) | |||
windows explorer will not open an excel spreadsheet. | Excel Discussion (Misc queries) | |||
Can I import a windows explorer list of files into an Excel sprea. | Excel Discussion (Misc queries) | |||
How do I import a Windows Explorer list into Excel? | Excel Discussion (Misc queries) |