panes, panes, OH the panes !!

L

laptop

in ms-word-2000, have created a document with 3 frames.
i click a button in frame1 to load a word-doc into frame2.
i click on a hyperlink in frame2 which load into frame3.

i cannot seem to refer directly to the frames by name when i desire, and so
am forced to refer the them via the panes-object.

my misfortune occurs in that the same pane-index# changes its mind as to
which frame it refers to and i have things loading into the wrong frame.

ActiveWindow.Panes(2).Frameset.FrameDefaultURL = "c:\test.doc"

this loads the test document into different frames throughout the
application


what's up with the panes ?

mike g
 
C

Cindy M -WordMVP-

Hi Laptop,

Hmmm, it's not completely clear what you want to accomplish, but...

1. FRAMES of the type you're using are an HTML beast. That means they were
designed to be used with Hyperlinks and A HREF in a BROWSER

2. Word is most emphatically NOT a browser. When it opens a non-Word file
type, it has to convert everything to Word objects it understands. In native
Word, a frame is something else that resembles a textbox (from the Drawing
toolbar) and can be found in the Forms toolbar.

And in order to mimic an HTML frame, Word uses its native Panes (splitting up
the document window into separate regions).

So, it sounds like you're trying to coerce Word into doing something it
really wasn't designed to do :) And Word isn't known to be particularly
co-operative in situations like that.

I'm guessing that the pane index numbers may change depending on which order
they were last activated. What might help would be to assign global-level
object variables to the panes as the document is opened, so that you can
always be assured of picking up the "right" one. And if there's something
uniquely identifiable in or about each pane, you can use that as a fallback
for re-assigning the object variables in case they'd fall out of scope.
in ms-word-2000, have created a document with 3 frames.
i click a button in frame1 to load a word-doc into frame2.
i click on a hyperlink in frame2 which load into frame3.

i cannot seem to refer directly to the frames by name when i desire, and so
am forced to refer the them via the panes-object.

my misfortune occurs in that the same pane-index# changes its mind as to
which frame it refers to and i have things loading into the wrong frame.

ActiveWindow.Panes(2).Frameset.FrameDefaultURL = "c:\test.doc"

this loads the test document into different frames throughout the
application


what's up with the panes ?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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

Similar Threads

Hyperlink fails to open on the first click 0
FRAMES IN A FORM 5
Case statement 1
Really weird behaviour of textbox 4
frames useage 0
frames useage 0
Navigation Pane doesn't work... 2
Task Pane doesn't "stick" 2

Top