Re: Moving between open Word documents

Tech-Archive recommends: Fix windows errors by optimizing your registry



Wow. That's interesting.

I'm a total novice when you say "code" and I can only imagine that I'd copy
and paste your post into the text area for editing/creating a macro, I
presume. Assuming that's the case, would you pleae be so kind as to tell me
where and how so I don't risk messing up my Normal.dot file or something else
expermimenting?

Also, I assume this will move "forward" to the next window (or nowhere if
there is no other Word document open). Can I assume that changing +1 to -1
will do the same but cycle "backward" and thus allow me to have two keyboard
commands to go either to the "Next" or "Previous" window?

Thanks a million.

Jay


"Doug Robbins" wrote:

> The following code will cycle through the active documents:
>
> Dim i As Long
> i = ActiveWindow.Index
> If i < Windows.Count Then
> Windows(i + 1).Activate
> Else
> Windows(1).Activate
> End If
>
>
> --
> Hope this helps.
>
> Please reply to the newsgroup unless you wish to avail yourself of my
> services on a paid consulting basis.
>
> Doug Robbins - Word MVP
> "Chigongman" <Chigongman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:9D95DBC9-25F9-41AA-A6B3-BB0D4E73732F@xxxxxxxxxxxxxxxx
> > When I had Word 2000 on my W98 machine I created macros that let me use
> > Function buttons on the keyboard (F11, F12), to move to the Previous or
> > Next
> > open Word document. It was a very convenient way of cycling through
> > multiple
> > open documents.
> >
> > Now I'm using Word 2003 (Office 2003) on an XP machine and I can't seem to
> > find how to do that. Ican't find how to move between documents -- other
> > than
> > the basic method of "Window - #" which won't work for a macro for
> > cycling --
> > which means I of course also don't know how to create a macro for it.
> >
> > Searching Help didn't yield anything useful at all. (I'm wondering if the
> > commands are even available in 2003.)
> >
> > Thanks.
> >
> >
>
>
>
.


Quantcast