Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default 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

Reply
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
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM
Can I Select an "Import" Template Based on a Doc's Filename? [email protected] Excel Discussion (Misc queries) 0 June 16th 06 02:32 AM
Guides "Template" - in Danish "Guiden Skabelon" DasLederlap Excel Programming 0 May 15th 06 12:00 PM
Using "Cells" to write "Range("A:A,H:H").Select" Trip Ives[_2_] Excel Programming 3 June 5th 04 03:13 PM


All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"