Having VBA go out and import a .dat file that has been already identified within an Excel cell

Philip Summers

New Member
Joined
Jan 17, 2014
Messages
1
Hello,
This is my first posting within any forum with regards to anything Excel related. Hopefully this proves successful?

I'm currently attempting to create an Excel file that I can place on one of my Supervisor's desktop where he can input a certain date format within an existing cell (say I3) and by inputting that date in the correct format (YYMMDD) it will then automatically populate cell P3 with the correct formatted .DAT file name that I need to have VBA go out and grab out of our I:\Trace drive and folder name. This drive and folder name and location might change to something else possibly in the near future, but for now this is where it's located.
After the date has been entered correctly I wish for the Supervisor to press a button that I've created and placed in the worksheet that says "IMPORT". Upon the Sup pressing the button this is where I wish VBA to begin its work to identify the P3 info and import from there.
I can deal with the formatting of the file once it's imported, but I just need this hurdle completed first.

Anyone can help?

I'm also an absolute Novice level operator when it comes to VBA so please explain as much as possible in the English format so that I can understand what the code will mean when I have to write/re-write it.

Thank you so much in advance for any support offered. I'll try and reply as quickly as possible so as to not lose out on any supportive ideas along the way.

Philip
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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