Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Hi ...read text file and copy it in a specific cell

Hello all,


Can we copy a number/text from a text file which is in a specific
colomn and row in a text file( which has a fixed format, say 10 spaces)
and then paste it in the excel sheet. I don't want to use the import
command cuz my text file is not delimited.
There are number randomly placed in the text file which I need to copy
and paste it in the excel cells.


I want to place a button on my spreadsheet which would help the user to

locate the data file and then excel would extract data from that sheet
and paste it in the black spaces on the sheet.


Please Help !!!


Thanks,


Riggi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Hi ...read text file and copy it in a specific cell

Look into the Open statement in help.
Depending on how you intend to locate the string(s) in the text;

Dim FileNum as long
Filenum=freefile
Open Filename For Input As #FileNum
or
Open Filename For Binary As #FileNum
'etc

NickHK

Riggi wrote:
Hello all,


Can we copy a number/text from a text file which is in a specific
colomn and row in a text file( which has a fixed format, say 10 spaces)
and then paste it in the excel sheet. I don't want to use the import
command cuz my text file is not delimited.
There are number randomly placed in the text file which I need to copy
and paste it in the excel cells.


I want to place a button on my spreadsheet which would help the user to

locate the data file and then excel would extract data from that sheet
and paste it in the black spaces on the sheet.


Please Help !!!


Thanks,


Riggi


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
Hi ...read test file and copy it in a cell Riggi Excel Programming 1 December 29th 06 05:26 AM
How do you save an excel file to be read as IBM-type text file ? Dee Franklin Excel Worksheet Functions 2 October 10th 06 02:46 AM
copy text to specific cell Tattyfur Excel Discussion (Misc queries) 1 January 5th 06 05:21 PM
Copy text to specific cell. Defoes Right Boot Excel Programming 6 May 25th 05 03:30 PM
Macro to copy text to a specific cell reference shanman_lmtd Excel Programming 3 July 23rd 04 03:32 PM


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