Selecting a particular Frame

J

JayM

Hi

I have had help of here recently to help me batch change 2 frames in a
document.

I need to be able to ensure which frame I am changing. One of the frames
has a bookmark in it but the otherone doesn't I need to be able to change
both frames but there doesn't seem to be any standard as to which is frame 1
and which is frame 2.

Can I set this knowing that one frame has a book mark in it?

Hope this makes sense

Jay
 
J

Jonathan West

JayM said:
Hi

I have had help of here recently to help me batch change 2 frames in a
document.

I need to be able to ensure which frame I am changing. One of the frames
has a bookmark in it but the otherone doesn't I need to be able to change
both frames but there doesn't seem to be any standard as to which is frame
1
and which is frame 2.

Can I set this knowing that one frame has a book mark in it?


Dim oFrame As Frame
Set oFrame = ActiveDOcument.Bookmarks("MyBookmark").Range.Frames(1)

Change the name of the bookmark as needed
 
J

JayM

Jonathan

Thanks for your help with this but I think my document is just getting
confused now.

It thinks that the frame with the bookmark is both frame 1 and 2 now and
moves the bookmarked frame from its original position then to the new
bookmarked frame
position and then moves it again to the frame(2) position and doesn't move
frame(2) at all.

Are there any other ways in which I can reference the frames. I think I am
going to have to end up doing this manually!!!!!

Jay
 
J

Jonathan West

JayM said:
Jonathan

Thanks for your help with this but I think my document is just getting
confused now.

It thinks that the frame with the bookmark is both frame 1 and 2 now


Impossible. You can't have two bookmarks of the same name in a single
document.
and
moves the bookmarked frame from its original position then to the new
bookmarked frame
position and then moves it again to the frame(2) position and doesn't move
frame(2) at all.

Are there any other ways in which I can reference the frames. I think I
am
going to have to end up doing this manually!!!!!

That may be so. We need some completely unambiguous means by which the
correct frame can be identified in all the documents of the set. Not being
able to see the documents myself, I'm not in a position to know how to
define that.
 

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