dynamic content

N

Nathan Franklin

Hello list

I have a document template I am working on and what I need to be able to
achieve is the ability to easily delete sections of the document that I dont
want with VB.

I have thought of the idea of maybe using a table and then just deleting the
table. But how do I reference this table. Can I assign a name to this table
and then delete it?

Another Idea I had was with bookmarks. Can i select a range of text and make
it a bookmark and then i can just just .Bookmarks("Itemname").delete ??
Would that work?

What about storeys? Can I define a new stoery or something like that. I am
new to work automation and would love your help!

Thanks very much

Nathan
 
J

Jezebel

The bookmarks method is probably easiest: you can do it exactly as you
describe. The main gotcha is that the user can re-arrange the content, which
can move the start or end points of the bookmark, so what gets deleted might
not be what you expect. This issue applies to most methods.

You can give tables names and use the name to delete them; but the name is
not saved with the document, so it will work only within the single edit
session. You can also refer to tables by index number, which is the order of
occurrence within the document.

No you can't define new storys. You can define sections, and delete them by
index number.
 
N

Nathan Franklin

I heard something about bookmarks haven visual bracers around them. You know
like [ and ]. Is this possible. If so How do i do it?

thanks Jezebel

nathan
 
D

Doug Robbins - Word MVP

From the Tools menu, select Options and go to the View tab and check the box
against "Bookmarks" You will see them on the screen, but they do not print.

--
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

Nathan Franklin said:
I heard something about bookmarks haven visual bracers around them. You
know like [ and ]. Is this possible. If so How do i do it?

thanks Jezebel

nathan

Jezebel said:
The bookmarks method is probably easiest: you can do it exactly as you
describe. The main gotcha is that the user can re-arrange the content,
which can move the start or end points of the bookmark, so what gets
deleted might not be what you expect. This issue applies to most methods.

You can give tables names and use the name to delete them; but the name
is not saved with the document, so it will work only within the single
edit session. You can also refer to tables by index number, which is the
order of occurrence within the document.

No you can't define new storys. You can define sections, and delete them
by index number.
 

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