Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Importing a File into a Template

I have an Excel template with a button for someone to click, at which time
they select a text file to import and it imports it through the import
wizard. However, there is now a separate file (text file) open, which could
be under any file name (it would change each time). How can I have VBA copy
the file that was just opened via the wizard into the template, starting at
cell A1, and then close (and not save) the file opened via the wizard?

Also, I looked at Chip Pearson's VBA coding to import a file, but it asks
for a separator (via a message box), and I don't know how to indicate a tab
as a separtor. Any ideas?
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
Importing data into specific template cells Ron Excel Discussion (Misc queries) 0 July 11th 06 07:24 PM
Importing text file, only option to edit existing file smokey99 Excel Discussion (Misc queries) 8 April 26th 06 09:08 PM
importing links from access to excel to template jwr Links and Linking in Excel 1 February 5th 06 06:42 PM
Importing CSV data into a template or? Alberto Excel Worksheet Functions 3 October 28th 05 07:41 PM
Error:Invalid File format,while opening an Excel Template file Saurabh Excel Programming 1 January 17th 05 07:15 AM


All times are GMT +1. The time now is 01:35 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"