Macros: Highlight and Duplicate?

L

Lukas Bradley

Hi all,

Is there a way to highlight a table or text area and have Word create a Macro to duplicate the highlighted area? Imagine it as a "record macro after the fact." I'm trying to create a Document Template that will contain several custom toolbar buttons that spit out custom tables. Here is an example:

Object


Signature






Method








I've been playing with Macros and recording them. However, if there is a text or binary markup representing my Word contents, why can't that just be duplicated as a Macro? It would be a lot easier for me to avoid most of the VB tweaking if this table could just be unraveled. I'm sick of pressing control + c.

Any and all help appreciated. I may just be ignorant of another Word feature which solves all my problems. Please enlighten me if so.

Lukas
 
L

Lukas Bradley

As far as I can tell, autotext doesn't allow tables and other non-text
features.

I'm sorry, my original example included a table.

Lukas
 
M

Mark Tangard

??? Yes it does. How are you trying to define the AutoText?

Unless you have the Poltergeist version of Word, you should
be able to select a table (ALT+double-click), press ALT+F3,
and name the AutoText. You can make AutoTexts from just
about anything Word contains -- pictures, graphics, fields,
etc.

AutoText for a complex table is a zillion times more useful
than a macro to create it -- either before or after the fact.
(For starters, you can make adjustments to the table and just
redefine the AutoText using the 2 steps above. Editing the
corresponding macro would be a lot more tedious.)
 
L

Lukas Bradley

Unless you have the Poltergeist version of Word, you should
be able to select a table (ALT+double-click), press ALT+F3,
and name the AutoText. You can make AutoTexts from just
about anything Word contains -- pictures, graphics, fields,
etc.

Excellent. Beautiful. Rock star solution. Thank you.

Lukas
 

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