Search for MS Word (Parents and child window)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Search for MS Word (Parents and child window)

  1. #1
    Sasha Polinskaya Guest

    Search for MS Word (Parents and child window)



    I have a task from Visual basic to SAVE (at certain interval) all opened
    documents in any number of open ms word that user has opened on the PC

    ms word maybe minimized, or maximized
    documents inside of the ms word could be minimized or maximized
    documents inside of the ms word can be saved already , or never been saved
    yet



  2. #2
    Michael Shutt Guest

    Re: Search for MS Word (Parents and child window)

    Are you aware that Word has a feature that autosaves a backup of the working
    file every so often (the interval is configurable) to protect you from
    losing your work? That sounds a lot like what you're trying to do.

    --
    Michael Shutt

    Please respond to newsgroup as I will not return direct emails.

    "Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    news:3c6bff3f@10.1.10.29...
    >
    >
    > I have a task from Visual basic to SAVE (at certain interval) all opened
    > documents in any number of open ms word that user has opened on the PC
    >
    > ms word maybe minimized, or maximized
    > documents inside of the ms word could be minimized or maximized
    > documents inside of the ms word can be saved already , or never been

    saved
    > yet
    >
    >




  3. #3
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)


    I am aware, that is from where I start.
    AutoSave will work only when the document is in active mode. So, if the
    AutoSave is set for 10 minutes and a user switches to another window after
    9 minutes Word will not perform an AutoSave, that is why I need to refer
    to any files, not just active




    "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >Are you aware that Word has a feature that autosaves a backup of the working
    >file every so often (the interval is configurable) to protect you from
    >losing your work? That sounds a lot like what you're trying to do.
    >
    >--
    >Michael Shutt
    >
    >Please respond to newsgroup as I will not return direct emails.
    >
    >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >news:3c6bff3f@10.1.10.29...
    >>
    >>
    >> I have a task from Visual basic to SAVE (at certain interval) all opened
    >> documents in any number of open ms word that user has opened on the PC
    >>
    >> ms word maybe minimized, or maximized
    >> documents inside of the ms word could be minimized or maximized
    >> documents inside of the ms word can be saved already , or never been

    >saved
    >> yet
    >>
    >>

    >
    >



  4. #4
    Roy Guest

    Re: Search for MS Word (Parents and child window)

    I would use a Timer and MS Word object library to do this. Loop through
    documents collection and save them every lets say 10 minutes.

    Roy

    "Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    news:3c6c25b7$1@10.1.10.29...
    >
    > I am aware, that is from where I start.
    > AutoSave will work only when the document is in active mode. So, if the
    > AutoSave is set for 10 minutes and a user switches to another window after
    > 9 minutes Word will not perform an AutoSave, that is why I need to refer
    > to any files, not just active
    >
    >
    >
    >
    > "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    > >Are you aware that Word has a feature that autosaves a backup of the

    working
    > >file every so often (the interval is configurable) to protect you from
    > >losing your work? That sounds a lot like what you're trying to do.
    > >
    > >--
    > >Michael Shutt
    > >
    > >Please respond to newsgroup as I will not return direct emails.
    > >
    > >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >news:3c6bff3f@10.1.10.29...
    > >>
    > >>
    > >> I have a task from Visual basic to SAVE (at certain interval) all

    opened
    > >> documents in any number of open ms word that user has opened on the PC
    > >>
    > >> ms word maybe minimized, or maximized
    > >> documents inside of the ms word could be minimized or maximized
    > >> documents inside of the ms word can be saved already , or never been

    > >saved
    > >> yet
    > >>
    > >>

    > >
    > >

    >




  5. #5
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)


    The document collection is working very good when users open one instance
    of MS word and are working on several documents at once, but as soon as they
    open another instance of MS word , the document collection overwrites with
    NEW Items .I NEED to read it with API(s).

    "Roy" <iroy55@hotmail.com> wrote:
    >I would use a Timer and MS Word object library to do this. Loop through
    >documents collection and save them every lets say 10 minutes.
    >
    >Roy
    >
    >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >news:3c6c25b7$1@10.1.10.29...
    >>
    >> I am aware, that is from where I start.
    >> AutoSave will work only when the document is in active mode. So, if the
    >> AutoSave is set for 10 minutes and a user switches to another window after
    >> 9 minutes Word will not perform an AutoSave, that is why I need to refer
    >> to any files, not just active
    >>
    >>
    >>
    >>
    >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >Are you aware that Word has a feature that autosaves a backup of the

    >working
    >> >file every so often (the interval is configurable) to protect you from
    >> >losing your work? That sounds a lot like what you're trying to do.
    >> >
    >> >--
    >> >Michael Shutt
    >> >
    >> >Please respond to newsgroup as I will not return direct emails.
    >> >
    >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >news:3c6bff3f@10.1.10.29...
    >> >>
    >> >>
    >> >> I have a task from Visual basic to SAVE (at certain interval) all

    >opened
    >> >> documents in any number of open ms word that user has opened on the

    PC
    >> >>
    >> >> ms word maybe minimized, or maximized
    >> >> documents inside of the ms word could be minimized or maximized
    >> >> documents inside of the ms word can be saved already , or never been
    >> >saved
    >> >> yet
    >> >>
    >> >>
    >> >
    >> >

    >>

    >
    >



  6. #6
    Roy Guest

    Re: Search for MS Word (Parents and child window)

    That is why you need to have a timer to check what is open at this
    particular moment! You don't need an API to do this simple task!

    Roy

    "Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    news:3c6c2fe8$1@10.1.10.29...
    >
    > The document collection is working very good when users open one instance
    > of MS word and are working on several documents at once, but as soon as

    they
    > open another instance of MS word , the document collection overwrites with
    > NEW Items .I NEED to read it with API(s).
    >
    > "Roy" <iroy55@hotmail.com> wrote:
    > >I would use a Timer and MS Word object library to do this. Loop through
    > >documents collection and save them every lets say 10 minutes.
    > >
    > >Roy
    > >
    > >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >news:3c6c25b7$1@10.1.10.29...
    > >>
    > >> I am aware, that is from where I start.
    > >> AutoSave will work only when the document is in active mode. So, if

    the
    > >> AutoSave is set for 10 minutes and a user switches to another window

    after
    > >> 9 minutes Word will not perform an AutoSave, that is why I need to

    refer
    > >> to any files, not just active
    > >>
    > >>
    > >>
    > >>
    > >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    > >> >Are you aware that Word has a feature that autosaves a backup of the

    > >working
    > >> >file every so often (the interval is configurable) to protect you from
    > >> >losing your work? That sounds a lot like what you're trying to do.
    > >> >
    > >> >--
    > >> >Michael Shutt
    > >> >
    > >> >Please respond to newsgroup as I will not return direct emails.
    > >> >
    > >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >news:3c6bff3f@10.1.10.29...
    > >> >>
    > >> >>
    > >> >> I have a task from Visual basic to SAVE (at certain interval) all

    > >opened
    > >> >> documents in any number of open ms word that user has opened on the

    > PC
    > >> >>
    > >> >> ms word maybe minimized, or maximized
    > >> >> documents inside of the ms word could be minimized or maximized
    > >> >> documents inside of the ms word can be saved already , or never

    been
    > >> >saved
    > >> >> yet
    > >> >>
    > >> >>
    > >> >
    > >> >
    > >>

    > >
    > >

    >




  7. #7
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)


    Try it your self and you will see that this is not a simple task!!!!!

    Of course in case for me to check every 10 min for open files I will use
    timer, BUT if they have FIVE intense of word opened and minimized, the document
    collection will have JUST the Last OPEN INSTANSE OF MS WORD!!!!!!!!!!!!!!!!
    They open MS word Not from VB, from word it self. And please do not respond
    if you have no idea what are you taking about

    Does some one know which API do I need to use for checking multiple instances
    of open word and drill down to each document and save it?

    "Roy" <iroy55@hotmail.com> wrote:
    >That is why you need to have a timer to check what is open at this
    >particular moment! You don't need an API to do this simple task!
    >
    >Roy
    >
    >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >news:3c6c2fe8$1@10.1.10.29...
    >>
    >> The document collection is working very good when users open one instance
    >> of MS word and are working on several documents at once, but as soon as

    >they
    >> open another instance of MS word , the document collection overwrites

    with
    >> NEW Items .I NEED to read it with API(s).
    >>
    >> "Roy" <iroy55@hotmail.com> wrote:
    >> >I would use a Timer and MS Word object library to do this. Loop through
    >> >documents collection and save them every lets say 10 minutes.
    >> >
    >> >Roy
    >> >
    >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >news:3c6c25b7$1@10.1.10.29...
    >> >>
    >> >> I am aware, that is from where I start.
    >> >> AutoSave will work only when the document is in active mode. So, if

    >the
    >> >> AutoSave is set for 10 minutes and a user switches to another window

    >after
    >> >> 9 minutes Word will not perform an AutoSave, that is why I need to

    >refer
    >> >> to any files, not just active
    >> >>
    >> >>
    >> >>
    >> >>
    >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >> >Are you aware that Word has a feature that autosaves a backup of the
    >> >working
    >> >> >file every so often (the interval is configurable) to protect you

    from
    >> >> >losing your work? That sounds a lot like what you're trying to do.
    >> >> >
    >> >> >--
    >> >> >Michael Shutt
    >> >> >
    >> >> >Please respond to newsgroup as I will not return direct emails.
    >> >> >
    >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >news:3c6bff3f@10.1.10.29...
    >> >> >>
    >> >> >>
    >> >> >> I have a task from Visual basic to SAVE (at certain interval) all
    >> >opened
    >> >> >> documents in any number of open ms word that user has opened on

    the
    >> PC
    >> >> >>
    >> >> >> ms word maybe minimized, or maximized
    >> >> >> documents inside of the ms word could be minimized or maximized
    >> >> >> documents inside of the ms word can be saved already , or never

    >been
    >> >> >saved
    >> >> >> yet
    >> >> >>
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >
    >> >

    >>

    >
    >



  8. #8
    Oleg Guest

    Re: Search for MS Word (Parents and child window)


    Roy, my man , can you plz be more specific, HOW would you go about checking
    what files are OPEN at this current second

    dont forget to take in to the account that user may have 5 documents open
    in 10 instances of ms Word at the same time

    and the task would be to save all of the files in all of the instances




    "Roy" <iroy55@hotmail.com> wrote:
    >That is why you need to have a timer to check what is open at this
    >particular moment! You don't need an API to do this simple task!
    >
    >Roy
    >
    >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >news:3c6c2fe8$1@10.1.10.29...
    >>
    >> The document collection is working very good when users open one instance
    >> of MS word and are working on several documents at once, but as soon as

    >they
    >> open another instance of MS word , the document collection overwrites

    with
    >> NEW Items .I NEED to read it with API(s).
    >>
    >> "Roy" <iroy55@hotmail.com> wrote:
    >> >I would use a Timer and MS Word object library to do this. Loop through
    >> >documents collection and save them every lets say 10 minutes.
    >> >
    >> >Roy
    >> >
    >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >news:3c6c25b7$1@10.1.10.29...
    >> >>
    >> >> I am aware, that is from where I start.
    >> >> AutoSave will work only when the document is in active mode. So, if

    >the
    >> >> AutoSave is set for 10 minutes and a user switches to another window

    >after
    >> >> 9 minutes Word will not perform an AutoSave, that is why I need to

    >refer
    >> >> to any files, not just active
    >> >>
    >> >>
    >> >>
    >> >>
    >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >> >Are you aware that Word has a feature that autosaves a backup of the
    >> >working
    >> >> >file every so often (the interval is configurable) to protect you

    from
    >> >> >losing your work? That sounds a lot like what you're trying to do.
    >> >> >
    >> >> >--
    >> >> >Michael Shutt
    >> >> >
    >> >> >Please respond to newsgroup as I will not return direct emails.
    >> >> >
    >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >news:3c6bff3f@10.1.10.29...
    >> >> >>
    >> >> >>
    >> >> >> I have a task from Visual basic to SAVE (at certain interval) all
    >> >opened
    >> >> >> documents in any number of open ms word that user has opened on

    the
    >> PC
    >> >> >>
    >> >> >> ms word maybe minimized, or maximized
    >> >> >> documents inside of the ms word could be minimized or maximized
    >> >> >> documents inside of the ms word can be saved already , or never

    >been
    >> >> >saved
    >> >> >> yet
    >> >> >>
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >
    >> >

    >>

    >
    >



  9. #9
    Oleg Guest

    Re: Search for MS Word (Parents and child window)


    Dude , before you say anything else
    Please TRY IT YOUR SELF !
    and see if it works


    the fangu is that the code you wrote , we have already tried , and
    it works wounders in case of ONE copy of msword open
    but if you open 2 or 3 or 10 copies (instancies) or MSWord, this code
    is F***ed up
    and it will print in debug only infor from the LATEST copy of MSword
    that was open



    "Roy" <iroy55@hotmail.com> wrote:
    >Alexandra,
    >try this:
    >Private Sub Timer1_Timer()
    >
    >Dim mydoc As Document
    >
    > Set mydoc = New Document
    > For Each mydoc In Documents
    > Debug.Print mydoc.Name
    > If mydoc.Saved = False Then mydoc.Save
    > Next mydoc
    >
    >End Sub
    >
    >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    >news:3c6d1e21$1@10.1.10.29...
    >>
    >> Try it your self and you will see that this is not a simple task!!!!!
    >>
    >> Of course in case for me to check every 10 min for open files I will use
    >> timer, BUT if they have FIVE intense of word opened and minimized, the

    >document
    >> collection will have JUST the Last OPEN INSTANSE OF MS

    >WORD!!!!!!!!!!!!!!!!
    >> They open MS word Not from VB, from word it self. And please do not

    >respond
    >> if you have no idea what are you taking about
    >>
    >> Does some one know which API do I need to use for checking multiple

    >instances
    >> of open word and drill down to each document and save it?
    >>
    >> "Roy" <iroy55@hotmail.com> wrote:
    >> >That is why you need to have a timer to check what is open at this
    >> >particular moment! You don't need an API to do this simple task!
    >> >
    >> >Roy
    >> >
    >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >news:3c6c2fe8$1@10.1.10.29...
    >> >>
    >> >> The document collection is working very good when users open one

    >instance
    >> >> of MS word and are working on several documents at once, but as soon

    as
    >> >they
    >> >> open another instance of MS word , the document collection overwrites

    >> with
    >> >> NEW Items .I NEED to read it with API(s).
    >> >>
    >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >I would use a Timer and MS Word object library to do this. Loop

    >through
    >> >> >documents collection and save them every lets say 10 minutes.
    >> >> >
    >> >> >Roy
    >> >> >
    >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >news:3c6c25b7$1@10.1.10.29...
    >> >> >>
    >> >> >> I am aware, that is from where I start.
    >> >> >> AutoSave will work only when the document is in active mode. So,

    if
    >> >the
    >> >> >> AutoSave is set for 10 minutes and a user switches to another window
    >> >after
    >> >> >> 9 minutes Word will not perform an AutoSave, that is why I need

    to
    >> >refer
    >> >> >> to any files, not just active
    >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >> >> >Are you aware that Word has a feature that autosaves a backup of

    >the
    >> >> >working
    >> >> >> >file every so often (the interval is configurable) to protect you

    >> from
    >> >> >> >losing your work? That sounds a lot like what you're trying to

    do.
    >> >> >> >
    >> >> >> >--
    >> >> >> >Michael Shutt
    >> >> >> >
    >> >> >> >Please respond to newsgroup as I will not return direct emails.
    >> >> >> >
    >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >> >news:3c6bff3f@10.1.10.29...
    >> >> >> >>
    >> >> >> >>
    >> >> >> >> I have a task from Visual basic to SAVE (at certain interval)

    all
    >> >> >opened
    >> >> >> >> documents in any number of open ms word that user has opened

    on
    >> the
    >> >> PC
    >> >> >> >>
    >> >> >> >> ms word maybe minimized, or maximized
    >> >> >> >> documents inside of the ms word could be minimized or maximized
    >> >> >> >> documents inside of the ms word can be saved already , or never
    >> >been
    >> >> >> >saved
    >> >> >> >> yet
    >> >> >> >>
    >> >> >> >>
    >> >> >> >
    >> >> >> >
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >
    >> >

    >>

    >
    >



  10. #10
    Roy Guest

    Re: Search for MS Word (Parents and child window)

    Alexandra,
    try this:
    Private Sub Timer1_Timer()

    Dim mydoc As Document

    Set mydoc = New Document
    For Each mydoc In Documents
    Debug.Print mydoc.Name
    If mydoc.Saved = False Then mydoc.Save
    Next mydoc

    End Sub

    "Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    news:3c6d1e21$1@10.1.10.29...
    >
    > Try it your self and you will see that this is not a simple task!!!!!
    >
    > Of course in case for me to check every 10 min for open files I will use
    > timer, BUT if they have FIVE intense of word opened and minimized, the

    document
    > collection will have JUST the Last OPEN INSTANSE OF MS

    WORD!!!!!!!!!!!!!!!!
    > They open MS word Not from VB, from word it self. And please do not

    respond
    > if you have no idea what are you taking about
    >
    > Does some one know which API do I need to use for checking multiple

    instances
    > of open word and drill down to each document and save it?
    >
    > "Roy" <iroy55@hotmail.com> wrote:
    > >That is why you need to have a timer to check what is open at this
    > >particular moment! You don't need an API to do this simple task!
    > >
    > >Roy
    > >
    > >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >news:3c6c2fe8$1@10.1.10.29...
    > >>
    > >> The document collection is working very good when users open one

    instance
    > >> of MS word and are working on several documents at once, but as soon as

    > >they
    > >> open another instance of MS word , the document collection overwrites

    > with
    > >> NEW Items .I NEED to read it with API(s).
    > >>
    > >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >I would use a Timer and MS Word object library to do this. Loop

    through
    > >> >documents collection and save them every lets say 10 minutes.
    > >> >
    > >> >Roy
    > >> >
    > >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >news:3c6c25b7$1@10.1.10.29...
    > >> >>
    > >> >> I am aware, that is from where I start.
    > >> >> AutoSave will work only when the document is in active mode. So, if

    > >the
    > >> >> AutoSave is set for 10 minutes and a user switches to another window

    > >after
    > >> >> 9 minutes Word will not perform an AutoSave, that is why I need to

    > >refer
    > >> >> to any files, not just active
    > >> >>
    > >> >>
    > >> >>
    > >> >>
    > >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    > >> >> >Are you aware that Word has a feature that autosaves a backup of

    the
    > >> >working
    > >> >> >file every so often (the interval is configurable) to protect you

    > from
    > >> >> >losing your work? That sounds a lot like what you're trying to do.
    > >> >> >
    > >> >> >--
    > >> >> >Michael Shutt
    > >> >> >
    > >> >> >Please respond to newsgroup as I will not return direct emails.
    > >> >> >
    > >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >> >news:3c6bff3f@10.1.10.29...
    > >> >> >>
    > >> >> >>
    > >> >> >> I have a task from Visual basic to SAVE (at certain interval) all
    > >> >opened
    > >> >> >> documents in any number of open ms word that user has opened on

    > the
    > >> PC
    > >> >> >>
    > >> >> >> ms word maybe minimized, or maximized
    > >> >> >> documents inside of the ms word could be minimized or maximized
    > >> >> >> documents inside of the ms word can be saved already , or never

    > >been
    > >> >> >saved
    > >> >> >> yet
    > >> >> >>
    > >> >> >>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >
    > >> >
    > >>

    > >
    > >

    >




  11. #11
    Roy Guest

    Re: Search for MS Word (Parents and child window)

    Now listen DUDE, just for your information I have 10 instances of MS word
    OPENED.
    Also I would never post anything that DOES NOT WORK, PAL !!!

    My best regards to you. Once in a while you need to brush you brain MY MAN.

    "Oleg" <Olegkha@aol.com> wrote in message news:3c6d2cbd$1@10.1.10.29...
    >
    > Dude , before you say anything else
    > Please TRY IT YOUR SELF !
    > and see if it works
    >
    >
    > the fangu is that the code you wrote , we have already tried , and
    > it works wounders in case of ONE copy of msword open
    > but if you open 2 or 3 or 10 copies (instancies) or MSWord, this

    code
    > is F***ed up
    > and it will print in debug only infor from the LATEST copy of MSword
    > that was open
    >
    >
    >
    > "Roy" <iroy55@hotmail.com> wrote:
    > >Alexandra,
    > >try this:
    > >Private Sub Timer1_Timer()
    > >
    > >Dim mydoc As Document
    > >
    > > Set mydoc = New Document
    > > For Each mydoc In Documents
    > > Debug.Print mydoc.Name
    > > If mydoc.Saved = False Then mydoc.Save
    > > Next mydoc
    > >
    > >End Sub
    > >
    > >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    > >news:3c6d1e21$1@10.1.10.29...
    > >>
    > >> Try it your self and you will see that this is not a simple task!!!!!
    > >>
    > >> Of course in case for me to check every 10 min for open files I will

    use
    > >> timer, BUT if they have FIVE intense of word opened and minimized, the

    > >document
    > >> collection will have JUST the Last OPEN INSTANSE OF MS

    > >WORD!!!!!!!!!!!!!!!!
    > >> They open MS word Not from VB, from word it self. And please do not

    > >respond
    > >> if you have no idea what are you taking about
    > >>
    > >> Does some one know which API do I need to use for checking multiple

    > >instances
    > >> of open word and drill down to each document and save it?
    > >>
    > >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >That is why you need to have a timer to check what is open at this
    > >> >particular moment! You don't need an API to do this simple task!
    > >> >
    > >> >Roy
    > >> >
    > >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >news:3c6c2fe8$1@10.1.10.29...
    > >> >>
    > >> >> The document collection is working very good when users open one

    > >instance
    > >> >> of MS word and are working on several documents at once, but as soon

    > as
    > >> >they
    > >> >> open another instance of MS word , the document collection

    overwrites
    > >> with
    > >> >> NEW Items .I NEED to read it with API(s).
    > >> >>
    > >> >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >> >I would use a Timer and MS Word object library to do this. Loop

    > >through
    > >> >> >documents collection and save them every lets say 10 minutes.
    > >> >> >
    > >> >> >Roy
    > >> >> >
    > >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >> >news:3c6c25b7$1@10.1.10.29...
    > >> >> >>
    > >> >> >> I am aware, that is from where I start.
    > >> >> >> AutoSave will work only when the document is in active mode. So,

    > if
    > >> >the
    > >> >> >> AutoSave is set for 10 minutes and a user switches to another

    window
    > >> >after
    > >> >> >> 9 minutes Word will not perform an AutoSave, that is why I need

    > to
    > >> >refer
    > >> >> >> to any files, not just active
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    > >> >> >> >Are you aware that Word has a feature that autosaves a backup of

    > >the
    > >> >> >working
    > >> >> >> >file every so often (the interval is configurable) to protect

    you
    > >> from
    > >> >> >> >losing your work? That sounds a lot like what you're trying to

    > do.
    > >> >> >> >
    > >> >> >> >--
    > >> >> >> >Michael Shutt
    > >> >> >> >
    > >> >> >> >Please respond to newsgroup as I will not return direct emails.
    > >> >> >> >
    > >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >> >> >news:3c6bff3f@10.1.10.29...
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >> I have a task from Visual basic to SAVE (at certain interval)

    > all
    > >> >> >opened
    > >> >> >> >> documents in any number of open ms word that user has opened

    > on
    > >> the
    > >> >> PC
    > >> >> >> >>
    > >> >> >> >> ms word maybe minimized, or maximized
    > >> >> >> >> documents inside of the ms word could be minimized or

    maximized
    > >> >> >> >> documents inside of the ms word can be saved already , or

    never
    > >> >been
    > >> >> >> >saved
    > >> >> >> >> yet
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >
    > >> >> >> >
    > >> >> >>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >
    > >> >
    > >>

    > >
    > >

    >




  12. #12
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)


    It doesn’t work

    Documents collection can contain just ONE instance of MS Word
    You probably open 10 documents in ONE MS WORD

    I open 5 instance of MS WORD inside with documents
    And this code can catch Just ONE MS WORD with my 10 Documents
    Thank you.

    I Still NEED HELP!!!!!!!!


    "Roy" <iroy55@hotmail.com> wrote:
    >Now listen DUDE, just for your information I have 10 instances of MS word
    >OPENED.
    >Also I would never post anything that DOES NOT WORK, PAL !!!
    >
    >My best regards to you. Once in a while you need to brush you brain MY MAN.
    >
    >"Oleg" <Olegkha@aol.com> wrote in message news:3c6d2cbd$1@10.1.10.29...
    >>
    >> Dude , before you say anything else
    >> Please TRY IT YOUR SELF !
    >> and see if it works
    >>
    >>
    >> the fangu is that the code you wrote , we have already tried ,

    and
    >> it works wounders in case of ONE copy of msword open
    >> but if you open 2 or 3 or 10 copies (instancies) or MSWord, this

    >code
    >> is F***ed up
    >> and it will print in debug only infor from the LATEST copy of MSword
    >> that was open
    >>
    >>
    >>
    >> "Roy" <iroy55@hotmail.com> wrote:
    >> >Alexandra,
    >> >try this:
    >> >Private Sub Timer1_Timer()
    >> >
    >> >Dim mydoc As Document
    >> >
    >> > Set mydoc = New Document
    >> > For Each mydoc In Documents
    >> > Debug.Print mydoc.Name
    >> > If mydoc.Saved = False Then mydoc.Save
    >> > Next mydoc
    >> >
    >> >End Sub
    >> >
    >> >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    >> >news:3c6d1e21$1@10.1.10.29...
    >> >>
    >> >> Try it your self and you will see that this is not a simple task!!!!!
    >> >>
    >> >> Of course in case for me to check every 10 min for open files I will

    >use
    >> >> timer, BUT if they have FIVE intense of word opened and minimized,

    the
    >> >document
    >> >> collection will have JUST the Last OPEN INSTANSE OF MS
    >> >WORD!!!!!!!!!!!!!!!!
    >> >> They open MS word Not from VB, from word it self. And please do not
    >> >respond
    >> >> if you have no idea what are you taking about
    >> >>
    >> >> Does some one know which API do I need to use for checking multiple
    >> >instances
    >> >> of open word and drill down to each document and save it?
    >> >>
    >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >That is why you need to have a timer to check what is open at this
    >> >> >particular moment! You don't need an API to do this simple task!
    >> >> >
    >> >> >Roy
    >> >> >
    >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >news:3c6c2fe8$1@10.1.10.29...
    >> >> >>
    >> >> >> The document collection is working very good when users open one
    >> >instance
    >> >> >> of MS word and are working on several documents at once, but as

    soon
    >> as
    >> >> >they
    >> >> >> open another instance of MS word , the document collection

    >overwrites
    >> >> with
    >> >> >> NEW Items .I NEED to read it with API(s).
    >> >> >>
    >> >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >> >I would use a Timer and MS Word object library to do this. Loop
    >> >through
    >> >> >> >documents collection and save them every lets say 10 minutes.
    >> >> >> >
    >> >> >> >Roy
    >> >> >> >
    >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >> >news:3c6c25b7$1@10.1.10.29...
    >> >> >> >>
    >> >> >> >> I am aware, that is from where I start.
    >> >> >> >> AutoSave will work only when the document is in active mode.

    So,
    >> if
    >> >> >the
    >> >> >> >> AutoSave is set for 10 minutes and a user switches to another

    >window
    >> >> >after
    >> >> >> >> 9 minutes Word will not perform an AutoSave, that is why I need

    >> to
    >> >> >refer
    >> >> >> >> to any files, not just active
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >> >> >> >Are you aware that Word has a feature that autosaves a backup

    of
    >> >the
    >> >> >> >working
    >> >> >> >> >file every so often (the interval is configurable) to protect

    >you
    >> >> from
    >> >> >> >> >losing your work? That sounds a lot like what you're trying

    to
    >> do.
    >> >> >> >> >
    >> >> >> >> >--
    >> >> >> >> >Michael Shutt
    >> >> >> >> >
    >> >> >> >> >Please respond to newsgroup as I will not return direct emails.
    >> >> >> >> >
    >> >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >> >> >news:3c6bff3f@10.1.10.29...
    >> >> >> >> >>
    >> >> >> >> >>
    >> >> >> >> >> I have a task from Visual basic to SAVE (at certain interval)

    >> all
    >> >> >> >opened
    >> >> >> >> >> documents in any number of open ms word that user has opened

    >> on
    >> >> the
    >> >> >> PC
    >> >> >> >> >>
    >> >> >> >> >> ms word maybe minimized, or maximized
    >> >> >> >> >> documents inside of the ms word could be minimized or

    >maximized
    >> >> >> >> >> documents inside of the ms word can be saved already , or

    >never
    >> >> >been
    >> >> >> >> >saved
    >> >> >> >> >> yet
    >> >> >> >> >>
    >> >> >> >> >>
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >>
    >> >> >> >
    >> >> >> >
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >
    >> >

    >>

    >
    >



  13. #13
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)



    It is not just save ones, it has to be save all the time users do any modification
    to any documents.

    "Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote:
    >
    >It doesn’t work
    >
    > Documents collection can contain just ONE instance of MS Word
    >You probably open 10 documents in ONE MS WORD
    >
    >I open 5 instance of MS WORD inside with documents
    >And this code can catch Just ONE MS WORD with my 10 Documents
    >Thank you.
    >
    >I Still NEED HELP!!!!!!!!
    >
    >
    >"Roy" <iroy55@hotmail.com> wrote:
    >>Now listen DUDE, just for your information I have 10 instances of MS word
    >>OPENED.
    >>Also I would never post anything that DOES NOT WORK, PAL !!!
    >>
    >>My best regards to you. Once in a while you need to brush you brain MY

    MAN.
    >>
    >>"Oleg" <Olegkha@aol.com> wrote in message news:3c6d2cbd$1@10.1.10.29...
    >>>
    >>> Dude , before you say anything else
    >>> Please TRY IT YOUR SELF !
    >>> and see if it works
    >>>
    >>>
    >>> the fangu is that the code you wrote , we have already tried ,

    >and
    >>> it works wounders in case of ONE copy of msword open
    >>> but if you open 2 or 3 or 10 copies (instancies) or MSWord, this

    >>code
    >>> is F***ed up
    >>> and it will print in debug only infor from the LATEST copy of MSword
    >>> that was open
    >>>
    >>>
    >>>
    >>> "Roy" <iroy55@hotmail.com> wrote:
    >>> >Alexandra,
    >>> >try this:
    >>> >Private Sub Timer1_Timer()
    >>> >
    >>> >Dim mydoc As Document
    >>> >
    >>> > Set mydoc = New Document
    >>> > For Each mydoc In Documents
    >>> > Debug.Print mydoc.Name
    >>> > If mydoc.Saved = False Then mydoc.Save
    >>> > Next mydoc
    >>> >
    >>> >End Sub
    >>> >
    >>> >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    >>> >news:3c6d1e21$1@10.1.10.29...
    >>> >>
    >>> >> Try it your self and you will see that this is not a simple task!!!!!
    >>> >>
    >>> >> Of course in case for me to check every 10 min for open files I will

    >>use
    >>> >> timer, BUT if they have FIVE intense of word opened and minimized,

    >the
    >>> >document
    >>> >> collection will have JUST the Last OPEN INSTANSE OF MS
    >>> >WORD!!!!!!!!!!!!!!!!
    >>> >> They open MS word Not from VB, from word it self. And please do not
    >>> >respond
    >>> >> if you have no idea what are you taking about
    >>> >>
    >>> >> Does some one know which API do I need to use for checking multiple
    >>> >instances
    >>> >> of open word and drill down to each document and save it?
    >>> >>
    >>> >> "Roy" <iroy55@hotmail.com> wrote:
    >>> >> >That is why you need to have a timer to check what is open at this
    >>> >> >particular moment! You don't need an API to do this simple task!
    >>> >> >
    >>> >> >Roy
    >>> >> >
    >>> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >>> >> >news:3c6c2fe8$1@10.1.10.29...
    >>> >> >>
    >>> >> >> The document collection is working very good when users open one
    >>> >instance
    >>> >> >> of MS word and are working on several documents at once, but as

    >soon
    >>> as
    >>> >> >they
    >>> >> >> open another instance of MS word , the document collection

    >>overwrites
    >>> >> with
    >>> >> >> NEW Items .I NEED to read it with API(s).
    >>> >> >>
    >>> >> >> "Roy" <iroy55@hotmail.com> wrote:
    >>> >> >> >I would use a Timer and MS Word object library to do this. Loop
    >>> >through
    >>> >> >> >documents collection and save them every lets say 10 minutes.
    >>> >> >> >
    >>> >> >> >Roy
    >>> >> >> >
    >>> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >>> >> >> >news:3c6c25b7$1@10.1.10.29...
    >>> >> >> >>
    >>> >> >> >> I am aware, that is from where I start.
    >>> >> >> >> AutoSave will work only when the document is in active mode.

    > So,
    >>> if
    >>> >> >the
    >>> >> >> >> AutoSave is set for 10 minutes and a user switches to another

    >>window
    >>> >> >after
    >>> >> >> >> 9 minutes Word will not perform an AutoSave, that is why I need
    >>> to
    >>> >> >refer
    >>> >> >> >> to any files, not just active
    >>> >> >> >>
    >>> >> >> >>
    >>> >> >> >>
    >>> >> >> >>
    >>> >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >>> >> >> >> >Are you aware that Word has a feature that autosaves a backup

    >of
    >>> >the
    >>> >> >> >working
    >>> >> >> >> >file every so often (the interval is configurable) to protect

    >>you
    >>> >> from
    >>> >> >> >> >losing your work? That sounds a lot like what you're trying

    >to
    >>> do.
    >>> >> >> >> >
    >>> >> >> >> >--
    >>> >> >> >> >Michael Shutt
    >>> >> >> >> >
    >>> >> >> >> >Please respond to newsgroup as I will not return direct emails.
    >>> >> >> >> >
    >>> >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >>> >> >> >> >news:3c6bff3f@10.1.10.29...
    >>> >> >> >> >>
    >>> >> >> >> >>
    >>> >> >> >> >> I have a task from Visual basic to SAVE (at certain interval)
    >>> all
    >>> >> >> >opened
    >>> >> >> >> >> documents in any number of open ms word that user has opened
    >>> on
    >>> >> the
    >>> >> >> PC
    >>> >> >> >> >>
    >>> >> >> >> >> ms word maybe minimized, or maximized
    >>> >> >> >> >> documents inside of the ms word could be minimized or

    >>maximized
    >>> >> >> >> >> documents inside of the ms word can be saved already , or

    >>never
    >>> >> >been
    >>> >> >> >> >saved
    >>> >> >> >> >> yet
    >>> >> >> >> >>
    >>> >> >> >> >>
    >>> >> >> >> >
    >>> >> >> >> >
    >>> >> >> >>
    >>> >> >> >
    >>> >> >> >
    >>> >> >>
    >>> >> >
    >>> >> >
    >>> >>
    >>> >
    >>> >
    >>>

    >>
    >>

    >



  14. #14
    Roy Guest

    Re: Search for MS Word (Parents and child window)

    To make things clear I should've say that I am using MS Office 2000 (sorry
    don't have pre 2000) and MS Word 9.0 object library.

    "Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    news:3c6d32b4$1@10.1.10.29...
    >
    > It doesn't work
    >
    > Documents collection can contain just ONE instance of MS Word
    > You probably open 10 documents in ONE MS WORD
    >
    > I open 5 instance of MS WORD inside with documents
    > And this code can catch Just ONE MS WORD with my 10 Documents
    > Thank you.
    >
    > I Still NEED HELP!!!!!!!!
    >
    >
    > "Roy" <iroy55@hotmail.com> wrote:
    > >Now listen DUDE, just for your information I have 10 instances of MS word
    > >OPENED.
    > >Also I would never post anything that DOES NOT WORK, PAL !!!
    > >
    > >My best regards to you. Once in a while you need to brush you brain MY

    MAN.
    > >
    > >"Oleg" <Olegkha@aol.com> wrote in message news:3c6d2cbd$1@10.1.10.29...
    > >>
    > >> Dude , before you say anything else
    > >> Please TRY IT YOUR SELF !
    > >> and see if it works
    > >>
    > >>
    > >> the fangu is that the code you wrote , we have already tried ,

    > and
    > >> it works wounders in case of ONE copy of msword open
    > >> but if you open 2 or 3 or 10 copies (instancies) or MSWord, this

    > >code
    > >> is F***ed up
    > >> and it will print in debug only infor from the LATEST copy of

    MSword
    > >> that was open
    > >>
    > >>
    > >>
    > >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >Alexandra,
    > >> >try this:
    > >> >Private Sub Timer1_Timer()
    > >> >
    > >> >Dim mydoc As Document
    > >> >
    > >> > Set mydoc = New Document
    > >> > For Each mydoc In Documents
    > >> > Debug.Print mydoc.Name
    > >> > If mydoc.Saved = False Then mydoc.Save
    > >> > Next mydoc
    > >> >
    > >> >End Sub
    > >> >
    > >> >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    > >> >news:3c6d1e21$1@10.1.10.29...
    > >> >>
    > >> >> Try it your self and you will see that this is not a simple

    task!!!!!
    > >> >>
    > >> >> Of course in case for me to check every 10 min for open files I will

    > >use
    > >> >> timer, BUT if they have FIVE intense of word opened and minimized,

    > the
    > >> >document
    > >> >> collection will have JUST the Last OPEN INSTANSE OF MS
    > >> >WORD!!!!!!!!!!!!!!!!
    > >> >> They open MS word Not from VB, from word it self. And please do not
    > >> >respond
    > >> >> if you have no idea what are you taking about
    > >> >>
    > >> >> Does some one know which API do I need to use for checking multiple
    > >> >instances
    > >> >> of open word and drill down to each document and save it?
    > >> >>
    > >> >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >> >That is why you need to have a timer to check what is open at this
    > >> >> >particular moment! You don't need an API to do this simple task!
    > >> >> >
    > >> >> >Roy
    > >> >> >
    > >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >> >news:3c6c2fe8$1@10.1.10.29...
    > >> >> >>
    > >> >> >> The document collection is working very good when users open one
    > >> >instance
    > >> >> >> of MS word and are working on several documents at once, but as

    > soon
    > >> as
    > >> >> >they
    > >> >> >> open another instance of MS word , the document collection

    > >overwrites
    > >> >> with
    > >> >> >> NEW Items .I NEED to read it with API(s).
    > >> >> >>
    > >> >> >> "Roy" <iroy55@hotmail.com> wrote:
    > >> >> >> >I would use a Timer and MS Word object library to do this. Loop
    > >> >through
    > >> >> >> >documents collection and save them every lets say 10 minutes.
    > >> >> >> >
    > >> >> >> >Roy
    > >> >> >> >
    > >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    > >> >> >> >news:3c6c25b7$1@10.1.10.29...
    > >> >> >> >>
    > >> >> >> >> I am aware, that is from where I start.
    > >> >> >> >> AutoSave will work only when the document is in active mode.

    > So,
    > >> if
    > >> >> >the
    > >> >> >> >> AutoSave is set for 10 minutes and a user switches to another

    > >window
    > >> >> >after
    > >> >> >> >> 9 minutes Word will not perform an AutoSave, that is why I

    need
    > >> to
    > >> >> >refer
    > >> >> >> >> to any files, not just active
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    > >> >> >> >> >Are you aware that Word has a feature that autosaves a backup

    > of
    > >> >the
    > >> >> >> >working
    > >> >> >> >> >file every so often (the interval is configurable) to protect

    > >you
    > >> >> from
    > >> >> >> >> >losing your work? That sounds a lot like what you're trying

    > to
    > >> do.
    > >> >> >> >> >
    > >> >> >> >> >--
    > >> >> >> >> >Michael Shutt
    > >> >> >> >> >
    > >> >> >> >> >Please respond to newsgroup as I will not return direct

    emails.
    > >> >> >> >> >
    > >> >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in

    message
    > >> >> >> >> >news:3c6bff3f@10.1.10.29...
    > >> >> >> >> >>
    > >> >> >> >> >>
    > >> >> >> >> >> I have a task from Visual basic to SAVE (at certain

    interval)
    > >> all
    > >> >> >> >opened
    > >> >> >> >> >> documents in any number of open ms word that user has

    opened
    > >> on
    > >> >> the
    > >> >> >> PC
    > >> >> >> >> >>
    > >> >> >> >> >> ms word maybe minimized, or maximized
    > >> >> >> >> >> documents inside of the ms word could be minimized or

    > >maximized
    > >> >> >> >> >> documents inside of the ms word can be saved already , or

    > >never
    > >> >> >been
    > >> >> >> >> >saved
    > >> >> >> >> >> yet
    > >> >> >> >> >>
    > >> >> >> >> >>
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >>
    > >> >> >> >
    > >> >> >> >
    > >> >> >>
    > >> >> >
    > >> >> >
    > >> >>
    > >> >
    > >> >
    > >>

    > >
    > >

    >




  15. #15
    Sasha Polinskaya Guest

    Re: Search for MS Word (Parents and child window)


    I use the same.
    If you need to REsave file which user modify and collection doesn't have
    that file any more, because it was overwritten with new items, how could
    you refer to this very first file again. I need to save ANY CHANGES as long
    as file is open

    thank you

    "Roy" <iroy55@hotmail.com> wrote:
    >To make things clear I should've say that I am using MS Office 2000 (sorry
    >don't have pre 2000) and MS Word 9.0 object library.
    >
    >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    >news:3c6d32b4$1@10.1.10.29...
    >>
    >> It doesn't work
    >>
    >> Documents collection can contain just ONE instance of MS Word
    >> You probably open 10 documents in ONE MS WORD
    >>
    >> I open 5 instance of MS WORD inside with documents
    >> And this code can catch Just ONE MS WORD with my 10 Documents
    >> Thank you.
    >>
    >> I Still NEED HELP!!!!!!!!
    >>
    >>
    >> "Roy" <iroy55@hotmail.com> wrote:
    >> >Now listen DUDE, just for your information I have 10 instances of MS

    word
    >> >OPENED.
    >> >Also I would never post anything that DOES NOT WORK, PAL !!!
    >> >
    >> >My best regards to you. Once in a while you need to brush you brain MY

    >MAN.
    >> >
    >> >"Oleg" <Olegkha@aol.com> wrote in message news:3c6d2cbd$1@10.1.10.29...
    >> >>
    >> >> Dude , before you say anything else
    >> >> Please TRY IT YOUR SELF !
    >> >> and see if it works
    >> >>
    >> >>
    >> >> the fangu is that the code you wrote , we have already tried

    ,
    >> and
    >> >> it works wounders in case of ONE copy of msword open
    >> >> but if you open 2 or 3 or 10 copies (instancies) or MSWord, this
    >> >code
    >> >> is F***ed up
    >> >> and it will print in debug only infor from the LATEST copy of

    >MSword
    >> >> that was open
    >> >>
    >> >>
    >> >>
    >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >Alexandra,
    >> >> >try this:
    >> >> >Private Sub Timer1_Timer()
    >> >> >
    >> >> >Dim mydoc As Document
    >> >> >
    >> >> > Set mydoc = New Document
    >> >> > For Each mydoc In Documents
    >> >> > Debug.Print mydoc.Name
    >> >> > If mydoc.Saved = False Then mydoc.Save
    >> >> > Next mydoc
    >> >> >
    >> >> >End Sub
    >> >> >
    >> >> >"Sasha Polinskaya" <'Polinska@HughesHubbard.com'> wrote in message
    >> >> >news:3c6d1e21$1@10.1.10.29...
    >> >> >>
    >> >> >> Try it your self and you will see that this is not a simple

    >task!!!!!
    >> >> >>
    >> >> >> Of course in case for me to check every 10 min for open files I

    will
    >> >use
    >> >> >> timer, BUT if they have FIVE intense of word opened and minimized,

    >> the
    >> >> >document
    >> >> >> collection will have JUST the Last OPEN INSTANSE OF MS
    >> >> >WORD!!!!!!!!!!!!!!!!
    >> >> >> They open MS word Not from VB, from word it self. And please do

    not
    >> >> >respond
    >> >> >> if you have no idea what are you taking about
    >> >> >>
    >> >> >> Does some one know which API do I need to use for checking multiple
    >> >> >instances
    >> >> >> of open word and drill down to each document and save it?
    >> >> >>
    >> >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >> >That is why you need to have a timer to check what is open at this
    >> >> >> >particular moment! You don't need an API to do this simple task!
    >> >> >> >
    >> >> >> >Roy
    >> >> >> >
    >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >> >news:3c6c2fe8$1@10.1.10.29...
    >> >> >> >>
    >> >> >> >> The document collection is working very good when users open

    one
    >> >> >instance
    >> >> >> >> of MS word and are working on several documents at once, but

    as
    >> soon
    >> >> as
    >> >> >> >they
    >> >> >> >> open another instance of MS word , the document collection
    >> >overwrites
    >> >> >> with
    >> >> >> >> NEW Items .I NEED to read it with API(s).
    >> >> >> >>
    >> >> >> >> "Roy" <iroy55@hotmail.com> wrote:
    >> >> >> >> >I would use a Timer and MS Word object library to do this. Loop
    >> >> >through
    >> >> >> >> >documents collection and save them every lets say 10 minutes.
    >> >> >> >> >
    >> >> >> >> >Roy
    >> >> >> >> >
    >> >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in message
    >> >> >> >> >news:3c6c25b7$1@10.1.10.29...
    >> >> >> >> >>
    >> >> >> >> >> I am aware, that is from where I start.
    >> >> >> >> >> AutoSave will work only when the document is in active mode.

    >> So,
    >> >> if
    >> >> >> >the
    >> >> >> >> >> AutoSave is set for 10 minutes and a user switches to another
    >> >window
    >> >> >> >after
    >> >> >> >> >> 9 minutes Word will not perform an AutoSave, that is why I

    >need
    >> >> to
    >> >> >> >refer
    >> >> >> >> >> to any files, not just active
    >> >> >> >> >>
    >> >> >> >> >>
    >> >> >> >> >>
    >> >> >> >> >>
    >> >> >> >> >> "Michael Shutt" <mshutt_nospam@mediaone.net> wrote:
    >> >> >> >> >> >Are you aware that Word has a feature that autosaves a backup

    >> of
    >> >> >the
    >> >> >> >> >working
    >> >> >> >> >> >file every so often (the interval is configurable) to protect
    >> >you
    >> >> >> from
    >> >> >> >> >> >losing your work? That sounds a lot like what you're trying

    >> to
    >> >> do.
    >> >> >> >> >> >
    >> >> >> >> >> >--
    >> >> >> >> >> >Michael Shutt
    >> >> >> >> >> >
    >> >> >> >> >> >Please respond to newsgroup as I will not return direct

    >emails.
    >> >> >> >> >> >
    >> >> >> >> >> >"Sasha Polinskaya" <Polinska@HughesHubbard.com> wrote in

    >message
    >> >> >> >> >> >news:3c6bff3f@10.1.10.29...
    >> >> >> >> >> >>
    >> >> >> >> >> >>
    >> >> >> >> >> >> I have a task from Visual basic to SAVE (at certain

    >interval)
    >> >> all
    >> >> >> >> >opened
    >> >> >> >> >> >> documents in any number of open ms word that user has

    >opened
    >> >> on
    >> >> >> the
    >> >> >> >> PC
    >> >> >> >> >> >>
    >> >> >> >> >> >> ms word maybe minimized, or maximized
    >> >> >> >> >> >> documents inside of the ms word could be minimized or
    >> >maximized
    >> >> >> >> >> >> documents inside of the ms word can be saved already ,

    or
    >> >never
    >> >> >> >been
    >> >> >> >> >> >saved
    >> >> >> >> >> >> yet
    >> >> >> >> >> >>
    >> >> >> >> >> >>
    >> >> >> >> >> >
    >> >> >> >> >> >
    >> >> >> >> >>
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >>
    >> >> >> >
    >> >> >> >
    >> >> >>
    >> >> >
    >> >> >
    >> >>
    >> >
    >> >

    >>

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center