LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default Copy data from new file in a folder

Hi all, I have a macro in "Sheet1" which copies the data from all the
files which are in folder ("C:\Test"). The files which are in this
folder have six digit number in their names. Like for example (see
below)
Record 556987 entry.xlsx
Record 587945 reg.xlsx
Record 547896 fig.xlsx
etc

the macro also extract that six digit number from the files name from
where it copies the data and put those six digit numbers in column A
of "Sheet1" so I know from which files I have copied the data. Time to
time new files get save in folder ("C:\Test") by my self and my
colleagues and every time when i know there are new files in the
folder i run macro to update "Sheet1" so i can have latest data copied
from the files. At the moment macro opens all the files one by one
and copies the data from the files and extract six digit numbers from
their name and close those files. i want some code that macro first
look in six digit numbers in files name and match them with six digit
numbers in column A of "Sheet1" and if there is new file with new six
digit numbers in its name then macro should only open that to copy the
data instead opeing all the files from which i have already copied the
data. Please can any friend can help.
 
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
Copy Paste a file into a folder with the current dat [email protected] Excel Programming 1 October 28th 08 04:47 PM
Copy Paste a file into a folder with the current date [email protected] Excel Programming 1 October 28th 08 04:39 PM
Copy data from all the file file from a folder. Heera Excel Programming 3 August 18th 08 03:14 PM
Create a copy in the same folder when a file is modified and saved Turboj Excel Discussion (Misc queries) 1 February 21st 06 04:51 AM
Copy an excel file to new created folder Myrna Rodriguez Excel Programming 2 September 9th 04 01:54 PM


All times are GMT +1. The time now is 10:34 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"