how I get all contents of a word doc wirh a macro written in VB ? after this I need to get it and put into a Rich Text field into another application using API !
how I get all contents of a word doc wirh a macro written in VB ? after this I need to get it and put into a Rich Text field into another application using API !
start the macro recorder in Word, then choose select all from the menu or use Ctrl + A
edit the macro, It will show u how to do it.
you are so funny.. but I need a suggestion for code ....
that was not an attempt to be funny, if u do as I said, u will produce the code u need, then u can look at it.
its a common way to do it if u are uncertain how to write the code.
If I misunderstood u'r question, please elaborate :)
i use something like this as VB macro :
to select & copy
ActiveDocument.Select
Selection.Copy
to deselect
Set Range = ActiveDocument.Range(Start:=0, End:=0)
Range.Select
it is another way to do this ?
I need another hint : how can I test if a process running ? Sample: if I run the Notepad I see in the task manager the notepad.exe process ! I need to check if an specific process is running !
I'm sorry bog_tom I still have problems understanding what u want help with here :confused: (I'm slow I know :) )
Do u need sample code on how to open a word doc from vb, and then run the code u showed in that last post ? is that it?
when it comes to detecting if app is running, try these links
http://www.vbforums.com/showthread.p...cation+running
http://www.vbforums.com/showthread.p...cation+running
http://www.vbforums.com/showthread.p...cation+running
http://www.vbforums.com/showthread.p...cation+running
thanx peet !