LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to activate a txt document in excel code?

Hi,

I have some excel file, with some number in excel cells. Each singl
figure in some cells. Of couse, there are some cells without an
content. My objective, is to let the figure in cells to be character i
text file, and let null cell to be space in text file. I can us
variables to transfer the data in excel to text. But there are anothe
problem appearing. I can not open text file in excel VB editor. Here i
my code:

Sub macr()
Dim i, j As Integer
Dim value As String

For i = 1 To 65
For j = 1 To 80
value = ActiveWorkbook.Sheets(1).Cells(i, j).value
Documents.Open Filename:="D:\VB\Code for TRF"
Activedocument.Paragraphs(i).Range.Characters(j).T ext = value

Next j
Next i

End Sub

It seems that the function "Document. Open" is not validaty, and I ca
not open the "Code for TRF" file in the code. How to modify the code
Thank you

--
Message posted from http://www.ExcelForum.com

 
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
Run Code On Activate Theresa Excel Worksheet Functions 5 December 18th 07 05:47 AM
Activate menus for Office document opened in IE PA Bear Excel Discussion (Misc queries) 0 January 11th 07 09:24 PM
How do I activate Document Version management in Excel just like . Pradeep Khanna Excel Discussion (Misc queries) 0 April 22nd 05 10:30 AM
using excel macro to activate word document Amy[_4_] Excel Programming 1 August 12th 03 12:40 AM
Embedded Word Document not painted until I click on it and activate it with the mouse Chad Knudson Excel Programming 1 July 23rd 03 09:58 PM


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