ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Can I Select an "Import" Template Based on a Doc's Filename? (https://www.excelbanter.com/excel-programming/364460-can-i-select-import-template-based-docs-filename.html)

[email protected]

Can I Select an "Import" Template Based on a Doc's Filename?
 
Hello. I would like for our users to be able to:
1. Select a text file in Windows Explorer;
2. Right-click and open the file with Excel;
3. Then, BASED ON THE DOCUMENT'S FILENAME, Excel would know which
macro/template to automatically apply to the file in order to import it
with the proper formatting and alignment.

I already have a macro that will import and format the file... but I
have to start/run the macro from Excel and then browse out to select my
file. Our users would really prefer to be able to just doubleclick
the file in Windows Explorer and Excel know how to import it based on
its filename. Is this possible in Excel?????

I would be really grateful for any help with this. Thank you.

Jessi



All times are GMT +1. The time now is 05:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com