Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trying to read in a CSV file into an Excel one when you open it



Hi

I have a nicely formatted csv data file containing only decimal numbers

I need to open it using an excel blank '.xsl' file that would insert the data
into it

I have tried a number of things to no avail and I think it should be straight
forward since ".csv" is a native format to excel

How do you read in a csv data file into an opening excel one?

Can anyone point me to some example code?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Trying to read in a CSV file into an Excel one when you open it

Albretch,
If you double click on the .csv, does it open in Excel OK ?

NickHK

"Albretch" wrote in message
news:13249998.1109826249790.JavaMail.X@x-0yc08mu0lvpns...


Hi

I have a nicely formatted csv data file containing only decimal numbers

I need to open it using an excel blank '.xsl' file that would insert the

data
into it

I have tried a number of things to no avail and I think it should be

straight
forward since ".csv" is a native format to excel

How do you read in a csv data file into an opening excel one?

Can anyone point me to some example code?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Trying to read in a CSV file into an Excel one when you open it

workbooks.Open "C:\Myfolder\Mydoc.csv"

would be the VBA. If you want to import into an existing file, then turn
on the macro recorder and import it through Data=Import External Data.

When the data is in, turn off the macro recorder and look at the code
recorded.

--
Regards,
Tom Ogilvy


"Albretch" wrote in message
news:13249998.1109826249790.JavaMail.X@x-0yc08mu0lvpns...


Hi

I have a nicely formatted csv data file containing only decimal numbers

I need to open it using an excel blank '.xsl' file that would insert the

data
into it

I have tried a number of things to no avail and I think it should be

straight
forward since ".csv" is a native format to excel

How do you read in a csv data file into an opening excel one?

Can anyone point me to some example code?





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
Can't Open a Read-Only file in Excel 03 Josh C Excel Discussion (Misc queries) 0 February 12th 08 10:09 PM
how do i open a read-only or encrypted file in excel? eesicon Excel Discussion (Misc queries) 1 November 28th 05 01:19 AM
I am getting "unable to read" when trying to open an excel file worf65 Excel Discussion (Misc queries) 4 August 20th 05 11:51 PM
how do i open a file in excel that is encrypted or read only ian c forde Excel Discussion (Misc queries) 0 March 4th 05 02:43 PM
Open Excel file as Read Only with code, yogendra joshi Excel Programming 1 May 13th 04 03:46 PM


All times are GMT +1. The time now is 09:58 AM.

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"