Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, Im using streamwriter to write to notepad or word. No problems
with this. Is it possible to write to either notpad or word, while the document is open, and the data to update as its written. At the momment notepad has to be closed, saved and reopened to see the data. Word doesnt allow me to write to it whilst its open. Regards Robert |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's some code that someone probably provided to me to copy comments out of
Excel into Word. You should be able to extract something from that for your purposes: Sub CopyCommentsToWord() Dim cmt As Comment Dim WdApp As Object Dim aWS As Worksheet On Error Resume Next Set WdApp = GetObject(, "Word.Application") If Err.Number < 0 Then Err.Clear Set WdApp = CreateObject("Word.Application") End If Debug.Print "after err.number" With WdApp .Visible = True .Documents.Add DocumentType:=0 For Each aWS In ActiveWorkbook.Worksheets For Each cmt In aWS.Comments .Selection.TypeText cmt.Parent.Address _ & vbTab & cmt.text .Selection.TypeParagraph Next Next aWS End With Set WdApp = Nothing End Sub "RobcPettit" wrote: Hi, Im using streamwriter to write to notepad or word. No problems with this. Is it possible to write to either notpad or word, while the document is open, and the data to update as its written. At the momment notepad has to be closed, saved and reopened to see the data. Word doesnt allow me to write to it whilst its open. Regards Robert |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thankyou for your reply, I will have a play around.
Regards Robert |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how i can write arabic numbers by microsoft excel word | Excel Discussion (Misc queries) | |||
HOW PUT WORD-ART IN THE BACKGROUND AND WRITE OVER IT | Excel Worksheet Functions | |||
Write to Word Document from Excel VBA Help Needed | Excel Programming | |||
How can you write a formula that searches for a particular word? | Excel Programming | |||
How to write in Word w/o Reference | Excel Programming |