PC Review


Reply
Thread Tools Rate Thread

how can i output the file

 
 
gongdayouzi@gmail.com
Guest
Posts: n/a
 
      24th Jan 2007
there is a txt file object in the excel file
(insert -> object -> create from file)

how can i read the txt file's contents or save the file?


thanks for method and advices

 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      25th Jan 2007
I seem to remember some code posted, about the middle of last year, here,
for extracting embedded files (from Peter T ?), but can't find the link now.
Maybe this will point you in the right direction. This opens the text file
in the default app for that file type. Not really tested, but seems to work
for text files:

Private Sub CommandButton1_Click()
Dim EmbedObj As OLEObject

For Each EmbedObj In ActiveSheet.OLEObjects
With EmbedObj
'See if it is Embedded
If .OLEType = xlOLEEmbed Then
Select Case .progID
'Check the type
Case "Package"
'.Verb xlVerbOpen
.Verb xlVerbPrimary
Case Else
'Not dealt with
End Select
Else
'Linked. Get the filename ?
End If
End With
Next

End Sub

If you are feeling adventurous, this looks like the C++ (?) source code to
read such objects from the XL file:
http://pldaniels.com/ripole/


NickHK

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> there is a txt file object in the excel file
> (insert -> object -> create from file)
>
> how can i read the txt file's contents or save the file?
>
>
> thanks for method and advices
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch File output to File with java twist Graza Windows XP General 4 20th Dec 2006 02:57 PM
mp3 music file too slow (and the output file too big) after conversion from aac petru.marginean@gmail.com Freeware 0 25th Jul 2006 01:04 PM
Open CSV file, format data and write output to a text file. BristolBloos Microsoft Excel Programming 1 18th Oct 2005 03:50 PM
Split a text file into several based on output file size. TJ Microsoft C# .NET 1 24th Jan 2005 10:15 AM
Output to - Adding a date to the Output File Argument =?Utf-8?B?VGltYm9i?= Microsoft Access Macros 2 22nd Oct 2004 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:23 PM.