Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Open files which contains given keyword

Hi Everyone,

Thanks in advance for helping me. Sorry for the English.

I would like to open files from a given folder which contains some
keywords in the file name.

Let us take an example:

A folder contains around 100 excel files, i would to open file which
contains the keyword "abc sales" in the file name. If any of the files
having this word in the file name, then that file should be opened.

Can anyone help me.

Cheers

Valli
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open files which contains given keyword

Hi Valli

I have this option in my merge add-in
http://www.rondebruin.nl/merge.htm

With code you can test it like this
I use the first code example from this page
http://www.rondebruin.nl/copy3.htm

You can change this line

FilesInPath = Dir(MyPath & "*.xl*")

File names that start with week
FilesInPath = Dir(MyPath & "week*.xl*")

Or contain week
FilesInPath = Dir(MyPath & "*week*.xl*")


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Valli" wrote in message ...
Hi Everyone,

Thanks in advance for helping me. Sorry for the English.

I would like to open files from a given folder which contains some
keywords in the file name.

Let us take an example:

A folder contains around 100 excel files, i would to open file which
contains the keyword "abc sales" in the file name. If any of the files
having this word in the file name, then that file should be opened.

Can anyone help me.

Cheers

Valli

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Open files which contains given keyword

It works great. Thanks Ron de Bruin.
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
how do I toggle between 2 open excel files and leave both open Big D in Brighton Excel Discussion (Misc queries) 1 November 6th 08 04:28 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
HOW TO GET OVER WITH THIS ANNOYING LINKED FILES MSG BOX WHEN I OPEN FILES WHICH HAS LINKS CAPTGNVR Excel Programming 4 February 8th 07 07:13 PM
Macro to open *.dat files and save as .txt (comma delimited text files) [email protected] Excel Programming 2 November 30th 05 05:50 AM
file open via IE hyperlink causes already open files to shrink and tile Marc Setting up and Configuration of Excel 0 May 4th 05 08:13 PM


All times are GMT +1. The time now is 06:14 PM.

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

About Us

"It's about Microsoft Excel"