Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
boyd
 
Posts: n/a
Default search by date in windows explorer

if i have 100 individually saved excell invoices, and i want to search by
dates and the format of those dates are as follows (1/1/2002) is there a way
to search by months
  #2   Report Post  
shafiee
 
Posts: n/a
Default

You can create a hidden cell which extracts the month from the date, and
then use that to search by months. You can do this by using the following
formula:

=TEXT(A1, "mmmm")

That will give you the month in text, which you can use in the "A word or
phrase in the file" box of the search assistant.

Hope that helped.

Shafiee.

"boyd" wrote in message
...
if i have 100 individually saved excell invoices, and i want to search by
dates and the format of those dates are as follows (1/1/2002) is there a
way
to search by months



  #3   Report Post  
boyd
 
Posts: n/a
Default

OK I FOLLOW YOU SHAFIEE, BUT LETS SAY THAT FOLDER CONTAINS NOT 100
INDIVIDUALLLY EXCEL FILES INVOICES BUT RATHER 3000 DO I HAVE TO DO THAT ONE
BY ONE OR IS THERE A WAY TO CREATE A MACRO THAT CHANGES ALL IN ONE SHOT.
THANKS FOR YOUR HELP THOUGH. THIS WAS A STUPID DECISION ON OUR PART TO SAVE
THIS WAY

"boyd" wrote:

if i have 100 individually saved excell invoices, and i want to search by
dates and the format of those dates are as follows (1/1/2002) is there a way
to search by months

  #4   Report Post  
shafiee
 
Posts: n/a
Default

Yes there is.
Use this example

Sub Start()

'Enumerate the excel files

a = Dir("c:\invoicepath\*.xls")
Do
If a < ActiveWorkbook.Name Then
ProcessFile a
End If
a = Dir
Loop Until a = ""
End Sub

Sub ProcessFile(filename)

'Do stuff with each individual sheet of each individual file

Set wbk = Workbooks.Open(ActiveWorkbook.Path & "\" & filename)
For Each sh In wbk.Sheets
sh.Range("A2").FormulaR1C1= "=Text(A1, " & chr(34) & "mmmm" &
chr(34) & ")"
Next sh
wbk.Close

End Sub

Oh and chill out dude.

Shafiee.


"boyd" wrote in message
...
OK I FOLLOW YOU SHAFIEE, BUT LETS SAY THAT FOLDER CONTAINS NOT 100
INDIVIDUALLLY EXCEL FILES INVOICES BUT RATHER 3000 DO I HAVE TO DO THAT
ONE
BY ONE OR IS THERE A WAY TO CREATE A MACRO THAT CHANGES ALL IN ONE SHOT.
THANKS FOR YOUR HELP THOUGH. THIS WAS A STUPID DECISION ON OUR PART TO
SAVE
THIS WAY

"boyd" wrote:

if i have 100 individually saved excell invoices, and i want to search by
dates and the format of those dates are as follows (1/1/2002) is there a
way
to search by months



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows search in Excel with autofilter Dave Z Excel Discussion (Misc queries) 1 January 21st 05 07:44 PM
Date issue between Windows and Macintosh version dlg1967 Excel Discussion (Misc queries) 4 January 19th 05 03:51 PM
Store data from Windows Explorer in Excel gizmo Excel Worksheet Functions 2 January 8th 05 02:23 AM
Can I import a windows explorer list of files into an Excel sprea. skeliher Excel Discussion (Misc queries) 2 December 1st 04 10:24 PM
How do I import a Windows Explorer list into Excel? Gord Dibben Excel Discussion (Misc queries) 0 December 1st 04 10:20 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"