Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Find Text File Import Cell

If you import data from a CSV or text file, is it possible to tell which cell
is the target import cell in VBA. That is, when I set up the import, I
assign A1 on Sheet1 as the cell. Is there any way in VBA to tell when
looping through sheets if there is a cell within the Used Range that has been
designated for a text file import? I know you can do it with web queries.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Find Text File Import Cell


you dont import a csv file
you open it as a new workbook.

so: no go (but you can copy the data
from the newly opened workbook to the location your want
in an existing workbook.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


ExcelMonkey wrote :

If you import data from a CSV or text file, is it possible to tell
which cell is the target import cell in VBA. That is, when I set up
the import, I assign A1 on Sheet1 as the cell. Is there any way in
VBA to tell when looping through sheets if there is a cell within the
Used Range that has been designated for a text file import? I know
you can do it with web queries.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find Text File Import Cell

You can import a textfile like any other "database" It would create a
querytable in Excel.

Instructions for xl2003 (introduced as a menu capability in xl2000)
On the Data menu, point to Import External Data and then click Import Data
to open the Select Data Source dialog box.
In the Select Data Source dialog box, in the Files of type list, select
Text Files.

Then, in the Look in list, navigate to the folder containing the file you
want and select the text file you want to import. The file might be on your
hard drive, a local network, or a disk.

http://office.microsoft.com/training...RC011801181033


To the OP.

You could look at the querytable objects on the sheets.
--
Regards,
Tom Ogilvy

"keepITcool" wrote in message
.com...

you dont import a csv file
you open it as a new workbook.

so: no go (but you can copy the data
from the newly opened workbook to the location your want
in an existing workbook.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


ExcelMonkey wrote :

If you import data from a CSV or text file, is it possible to tell
which cell is the target import cell in VBA. That is, when I set up
the import, I assign A1 on Sheet1 as the cell. Is there any way in
VBA to tell when looping through sheets if there is a cell within the
Used Range that has been designated for a text file import? I know
you can do it with web queries.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Find Text File Import Cell

Hi Tom,

you missed s't: OP said..
"I know you can do it with web queries."


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Tom Ogilvy wrote :

You can import a textfile like any other "database" It would create
a querytable in Excel.

Instructions for xl2003 (introduced as a menu capability in xl2000)
On the Data menu, point to Import External Data and then click Import
Data to open the Select Data Source dialog box.
In the Select Data Source dialog box, in the Files of type list,
select Text Files.

Then, in the Look in list, navigate to the folder containing the
file you want and select the text file you want to import. The file
might be on your hard drive, a local network, or a disk.

http://office.microsoft.com/training...ID=RP011801251
033&CTT=6&Origin=RC011801181033


To the OP.

You could look at the querytable objects on the sheets.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find Text File Import Cell

No, I don't believe I missed that - in fact that is what made me think the
OP is referring to what I described, which is the same mechanism as a web
query.

--
Regards,
Tom Ogilvy

"keepITcool" wrote in message
.com...
Hi Tom,

you missed s't: OP said..
"I know you can do it with web queries."


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Tom Ogilvy wrote :

You can import a textfile like any other "database" It would create
a querytable in Excel.

Instructions for xl2003 (introduced as a menu capability in xl2000)
On the Data menu, point to Import External Data and then click Import
Data to open the Select Data Source dialog box.
In the Select Data Source dialog box, in the Files of type list,
select Text Files.

Then, in the Look in list, navigate to the folder containing the
file you want and select the text file you want to import. The file
might be on your hard drive, a local network, or a disk.

http://office.microsoft.com/training...ID=RP011801251
033&CTT=6&Origin=RC011801181033


To the OP.

You could look at the querytable objects on the sheets.



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 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
How can you import external text file paragraph a into single cell Sam Excel Discussion (Misc queries) 0 April 14th 05 12:58 PM
How do I import text file, analyze data, export results, open next file Geoffro Excel Programming 2 March 6th 05 08:02 PM
Import text file into excel with preset file layout, delimeters VBA meldrape Excel Programming 7 June 15th 04 08:31 PM
Get External Data, Import Text File, File name problem Scott Riddle Excel Programming 1 July 11th 03 05:40 PM


All times are GMT +1. The time now is 04:59 PM.

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"