LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default command to import a file into excel

Sorry, if you want to import it into an existing document, turn on the macro
recorder while you manually do

Data=Get External Data = Import Text file

and import a text file.

Then turn off the macro recorder and replace the hardcoded file name with
the variable fName or whatever variable holds the fully qualified name of
the file.

--
Regards,
Tom Ogilvy


"vikram " wrote in message
...
i have made an excel file wherein i hve a command button and when i
click that command button, a common dolog box opens and i select a text
file, now i have selected a text file, i want to import it into
excel,,how would i do that

i have attached the file...


please let me know thanks

Attachment filename: vikrama.xls
Download attachment:

http://www.excelforum.com/attachment.php?postid=543522
---
Message posted from http://www.ExcelForum.com/



 
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
Can I import text file of cash flow to excel file then use formula Bumpa Excel Discussion (Misc queries) 2 May 28th 10 04:22 PM
import file so that it is a actual csv file, no excel cell version broncoburt New Users to Excel 1 November 21st 09 09:09 PM
import data from txt file to an existing excel file shaji Excel Discussion (Misc queries) 1 September 12th 09 04:15 PM
How come I can't import an .svc file(Open Office) to Excel file? beezer Excel Discussion (Misc queries) 1 August 28th 06 12:05 AM
import csv fiel from command line Amit Excel Discussion (Misc queries) 1 March 15th 06 11:08 AM


All times are GMT +1. The time now is 10:00 AM.

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

About Us

"It's about Microsoft Excel"