Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default Match file names listed in column with file names in folder

Hi all, In Sheet("Data").column A I have file names like (see below)
523688
523699 - pg1
523699 - pg2
523689 - 523690
523711

I want macro which should match names of files which are in folder "C:
\Document" with names of files which are in Sheet("Data").column A and
if there is any file name which is in folder "C:\Document" don’t match
with the list of file names in Sheet("Data").column A then macro
should open that file and copy cell B1 and paste it in Sheet
("Data").column B cells and then close that file and then loop this
process until there is no file left in folder. Please can any friend
can help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Match file names listed in column with file names in folder

This should get you started:
http://www.rondebruin.nl/folder.htm

Regards,
Ryan---

--
RyGuy


"K" wrote:

Hi all, In Sheet("Data").column A I have file names like (see below)
523688
523699 - pg1
523699 - pg2
523689 - 523690
523711

I want macro which should match names of files which are in folder "C:
\Document" with names of files which are in Sheet("Data").column A and
if there is any file name which is in folder "C:\Document" dont match
with the list of file names in Sheet("Data").column A then macro
should open that file and copy cell B1 and paste it in Sheet
("Data").column B cells and then close that file and then loop this
process until there is no file left in folder. Please can any friend
can help.

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
Extract file names from folder Haraki Excel Programming 5 August 24th 06 09:12 PM
Change file names in a folder TISR Excel Programming 2 April 12th 06 01:35 PM
Compare file names to folder contents marlea[_14_] Excel Programming 3 March 16th 06 03:59 PM
Change names of files in a folder to match names in Excel Column saybut Excel Programming 4 February 9th 04 06:26 PM
Extract file names last save info from a Folder Harapa Excel Programming 0 November 16th 03 04:33 PM


All times are GMT +1. The time now is 11:24 PM.

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"