How do I scroll a document without scrolling the controls?

C

coach_mikey

I'm trying to create an application where the majority of the screen
contains a loaded Word document. I want the user to be able to scroll
through that document and then add customized comments (textboxes,
actually) at specific locations via a series of controls I have
created. This is working fine.
I need the controls to always be present, even as the user scrolls
through the document.
I tried placing the controls (buttons, etc.) in one cell of a table and
the document in another, larger cell, but I cannot get the document
cell to scroll.

Can anyone help with guidance on the best approach to do this?
Thanks very much
 
P

Perry

If we're talking about controls not needing to scroll along as you navigate
through the document, I assume they don't have a function besides
controlling the scrolling, right?
If so, place the "scroll controls" in a modeless (tiny) userform and use
something like

ActiveWindow.ActivePane.LargeScroll down:=1
or
ActiveWindow.ActivePane.SmallScroll down:=1

Krgrds,
Perry
 
C

coach_mikey

Thanks a bunch Perry for the quick response!

The controls will actually be mostly buttons. The user will first
highlight text within the open word document. Then, the user will
click a particular button to add a particular textbox at that location
in the document as well as highlight the selected text. So I think
placing the buttons in a userform will still work, no? The userform
should stay visible onscreen where it is even if I scroll down several
pages of the document, right?
 
P

Perry

placing the buttons in a userform will still work, no? The userform
should stay visible onscreen where it is even if I scroll down several
pages of the document, right?

Right!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top