PC Review


Reply
Thread Tools Rate Thread

How do I crate a web query, but of a windows file directory

 
 
=?Utf-8?B?RGZhbGNvbng=?=
Guest
Posts: n/a
 
      25th Sep 2007
Hi,

I have an interesting problem which I have been trying to solve. I've got a
windows explorer directory full of word files which go back 3 years. Their
file names are all well formatted and can be imported into excel as text. I
then use excel to sort the files from the names into invoice numbers,
customer names, and billing date (all a part of the word file name). I also
use excel to hyperlink back to the original file on the hard drive. Now I
have a tool which anyone can use to retrieve a file.

Problem: It's easy to add a batch of file names with hyperlinks to excel.
But adding individual ones is time consuming. Can I use a database query to
monitor the files in the windows explorer folder for new additions? I've
even thought of using the windows indexing service- if it can be queried.

Is there and advice.

Best regards,
Duncan Falconer


 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      25th Sep 2007
How about using DIR to make a list of the files on a worksheet

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Dfalconx" <(E-Mail Removed)> wrote in message
news:1CBB4B66-DC52-4A0C-BFC4-(E-Mail Removed)...
> Hi,
>
> I have an interesting problem which I have been trying to solve. I've got
> a
> windows explorer directory full of word files which go back 3 years.
> Their
> file names are all well formatted and can be imported into excel as text.
> I
> then use excel to sort the files from the names into invoice numbers,
> customer names, and billing date (all a part of the word file name). I
> also
> use excel to hyperlink back to the original file on the hard drive. Now I
> have a tool which anyone can use to retrieve a file.
>
> Problem: It's easy to add a batch of file names with hyperlinks to excel.
> But adding individual ones is time consuming. Can I use a database query
> to
> monitor the files in the windows explorer folder for new additions? I've
> even thought of using the windows indexing service- if it can be queried.
>
> Is there and advice.
>
> Best regards,
> Duncan Falconer
>
>


 
Reply With Quote
 
=?Utf-8?B?RGZhbGNvbng=?=
Guest
Posts: n/a
 
      25th Sep 2007
Cheers Don,

but how do I do that?

Duncan

"Don Guillett" wrote:

> How about using DIR to make a list of the files on a worksheet
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Dfalconx" <(E-Mail Removed)> wrote in message
> news:1CBB4B66-DC52-4A0C-BFC4-(E-Mail Removed)...
> > Hi,
> >
> > I have an interesting problem which I have been trying to solve. I've got
> > a
> > windows explorer directory full of word files which go back 3 years.
> > Their
> > file names are all well formatted and can be imported into excel as text.
> > I
> > then use excel to sort the files from the names into invoice numbers,
> > customer names, and billing date (all a part of the word file name). I
> > also
> > use excel to hyperlink back to the original file on the hard drive. Now I
> > have a tool which anyone can use to retrieve a file.
> >
> > Problem: It's easy to add a batch of file names with hyperlinks to excel.
> > But adding individual ones is time consuming. Can I use a database query
> > to
> > monitor the files in the windows explorer folder for new additions? I've
> > even thought of using the windows indexing service- if it can be queried.
> >
> > Is there and advice.
> >
> > Best regards,
> > Duncan Falconer
> >
> >

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      25th Sep 2007
Sub GetFileList()
Dim ThePath As String
Dim fname As String
Dim i As Long
ThePath = "c:\A" 'ThisWorkbook.Path
fname = Dir(ThePath & "\*.doc")
i = 1
Do While fname <> ""
On Error Resume Next
'Workbooks.Open Filename:=fname
'MsgBox fname
Cells(i, 1) = fname
On Error GoTo 0
fname = Dir()
i = i + 1
Loop
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Dfalconx" <(E-Mail Removed)> wrote in message
news:B5223D32-2D0A-4CD0-81E4-(E-Mail Removed)...
> Cheers Don,
>
> but how do I do that?
>
> Duncan
>
> "Don Guillett" wrote:
>
>> How about using DIR to make a list of the files on a worksheet
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Dfalconx" <(E-Mail Removed)> wrote in message
>> news:1CBB4B66-DC52-4A0C-BFC4-(E-Mail Removed)...
>> > Hi,
>> >
>> > I have an interesting problem which I have been trying to solve. I've
>> > got
>> > a
>> > windows explorer directory full of word files which go back 3 years.
>> > Their
>> > file names are all well formatted and can be imported into excel as
>> > text.
>> > I
>> > then use excel to sort the files from the names into invoice numbers,
>> > customer names, and billing date (all a part of the word file name). I
>> > also
>> > use excel to hyperlink back to the original file on the hard drive.
>> > Now I
>> > have a tool which anyone can use to retrieve a file.
>> >
>> > Problem: It's easy to add a batch of file names with hyperlinks to
>> > excel.
>> > But adding individual ones is time consuming. Can I use a database
>> > query
>> > to
>> > monitor the files in the windows explorer folder for new additions?
>> > I've
>> > even thought of using the windows indexing service- if it can be
>> > queried.
>> >
>> > Is there and advice.
>> >
>> > Best regards,
>> > Duncan Falconer
>> >
>> >

>>
>>


 
Reply With Quote
 
=?Utf-8?B?RGZhbGNvbng=?=
Guest
Posts: n/a
 
      25th Sep 2007
Hi Don,

the script works a charm. I've never used one before.

Regards


"Don Guillett" wrote:

> Sub GetFileList()
> Dim ThePath As String
> Dim fname As String
> Dim i As Long
> ThePath = "c:\A" 'ThisWorkbook.Path
> fname = Dir(ThePath & "\*.doc")
> i = 1
> Do While fname <> ""
> On Error Resume Next
> 'Workbooks.Open Filename:=fname
> 'MsgBox fname
> Cells(i, 1) = fname
> On Error GoTo 0
> fname = Dir()
> i = i + 1
> Loop
> End Sub
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Dfalconx" <(E-Mail Removed)> wrote in message
> news:B5223D32-2D0A-4CD0-81E4-(E-Mail Removed)...
> > Cheers Don,
> >
> > but how do I do that?
> >
> > Duncan
> >
> > "Don Guillett" wrote:
> >
> >> How about using DIR to make a list of the files on a worksheet
> >>
> >> --
> >> Don Guillett
> >> Microsoft MVP Excel
> >> SalesAid Software
> >> (E-Mail Removed)
> >> "Dfalconx" <(E-Mail Removed)> wrote in message
> >> news:1CBB4B66-DC52-4A0C-BFC4-(E-Mail Removed)...
> >> > Hi,
> >> >
> >> > I have an interesting problem which I have been trying to solve. I've
> >> > got
> >> > a
> >> > windows explorer directory full of word files which go back 3 years.
> >> > Their
> >> > file names are all well formatted and can be imported into excel as
> >> > text.
> >> > I
> >> > then use excel to sort the files from the names into invoice numbers,
> >> > customer names, and billing date (all a part of the word file name). I
> >> > also
> >> > use excel to hyperlink back to the original file on the hard drive.
> >> > Now I
> >> > have a tool which anyone can use to retrieve a file.
> >> >
> >> > Problem: It's easy to add a batch of file names with hyperlinks to
> >> > excel.
> >> > But adding individual ones is time consuming. Can I use a database
> >> > query
> >> > to
> >> > monitor the files in the windows explorer folder for new additions?
> >> > I've
> >> > even thought of using the windows indexing service- if it can be
> >> > queried.
> >> >
> >> > Is there and advice.
> >> >
> >> > Best regards,
> >> > Duncan Falconer
> >> >
> >> >
> >>
> >>

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Query to List File names in specified directory =?Utf-8?B?Q2FuIE9mIFdvcm1z?= Microsoft Access External Data 1 2nd Mar 2007 08:06 PM
File Directory Query functionality andyblum@gmail.com Microsoft C# .NET 1 11th Sep 2006 10:08 PM
checkboxes to crate query Mark Sellers Microsoft Access 1 4th Sep 2006 08:06 PM
Is there a way to crate a "common" config file in .net 2.0 ? orental5@hotmail.com Microsoft Dot NET Framework 0 20th Apr 2006 02:46 PM
Query Active Directory (Windows 2000 Domain) groups Maziar Aflatoun Microsoft C# .NET 0 8th Mar 2004 08:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:44 AM.