ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Import into excel (https://www.excelbanter.com/excel-programming/277964-import-into-excel.html)

Ron Bromwell

Import into excel
 
Hi All,
I want to import a text file into excel using VB. Can
anyone give me some ideas on how this can be done. I can
create the excel file no problem. I just can't get the
import to work.


Ron

Dave Peterson[_3_]

Import into excel
 
If you like what you get with File|Open (and the import text wizard appears),
then record a macro when you do it.

If you want more control over the import, take a look at Chip Pearson's code:

http://www.cpearson.com/excel/imptext.htm

Ron Bromwell wrote:

Hi All,
I want to import a text file into excel using VB. Can
anyone give me some ideas on how this can be done. I can
create the excel file no problem. I just can't get the
import to work.

Ron


--

Dave Peterson



All times are GMT +1. The time now is 12:13 AM.

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