Results 1 to 7 of 7

Thread: how I get all contents of a word doc wirh a macro written in VB ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    how I get all contents of a word doc wirh a macro written in VB ?

    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 !

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    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.
    -= a peet post =-

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    you are so funny..

    you are so funny.. but I need a suggestion for code ....

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    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
    -= a peet post =-

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    something like this ...

    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 !

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    I'm sorry bog_tom I still have problems understanding what u want help with here (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
    -= a peet post =-

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Posts
    18

    thanx peet !

    thanx peet !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width