Want to automate data upload process

SKV

Active Member
Joined
Jan 7, 2009
Messages
257
TOBE system I am looking for.
1) User will place the file (to be uploaded) in a specific folder
Constraint - File may have different name each time, but there will be only one file in the folder at a given time.
2) Macro should read data from this file and upload into the system

Problem facing - Using Transfersheet functionality but since my file name is different every time, the macro is not able to find the file. How can I overcome this problem and make macro to pick file with file name consideration.

Ideally I want the system to work in a way that any time someone drops file into this folder, system should read the file automatically (FIFO) and then move this file to some other folder and picks the next one in line. Is it possible?

any pointers will help
SKV
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
I have done something in the past, and gotten around it using a BATCH file.

What my batch file does is rename the file to some static name, then calls (opens) the Access database which automatically runs using that static file name.

Similarly, you could rename the file with some VBA code right inside Access and skip the whole BATCH file altogether.
 
Upvote 0
Can you please provide the code to rename the file?

Thanks
SKV

I have done something in the past, and gotten around it using a BATCH file.

What my batch file does is rename the file to some static name, then calls (opens) the Access database which automatically runs using that static file name.

Similarly, you could rename the file with some VBA code right inside Access and skip the whole BATCH file altogether.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top