Access vba to loop through files

learning vba

New Member
Joined
Nov 20, 2016
Messages
8
Hello,

I want to write a vba which will loop though all the folders listed in "Folder_Tbl" and update the information in Cust_Table.

the entire file path is present in the "Path" field in my "Folder_Tbl"

If anyone knows a vba for this it would be very very helpful. I tried couple of vba codes but dont know how to pull a string from a table to be used in vba.:mad:

Thank you all in advance
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How are the tables linked and how do you want to update Cust_Table?
 
Upvote 0
What is it you actually want to do?

Is there data in the files in the folders listed in Folder_Tbl?
 
Upvote 0
hi guys. I'm now able to pull the path info in vba. but it gives me an erroe wile opening the file. it say path jot found
 
Upvote 0
Please describe more clearly what you are doing and post the code that errors.
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,913
Members
451,730
Latest member
BudgetGirl

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