Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Macro & embedded tables

Oct 10, 2005 4:05AM PDT

Hello,

I currently use a macro that calls an autotext entry to insert a certain table that is repeatedly used through the document. The autotext entry is in the normal.dot template and the macro is embedded in the document with a button to call it.

I would like to distribute the doucment to others in my workgroup, but cannot do this as structured. Many reaons, one of which is that the autotext entry cannot be part of their normal.dot template, and creating another template is not possible.

The best solution is to somehow imbed the table, with all of its formatting, into a macro that will be imbedded in the document, so that the document can be dispersed among the workgroup and the doucument operations will be self-contained. However, I am at a loss as to how to embed the table in the macro.

Any held would be appreciated.

Discussion is locked

- Collapse -
Not sure
Oct 10, 2005 4:38AM PDT

but if I am using an Excel spreadsheet with my own macros, and send the spreadsheet itself to someone else by email then when they open it, (after virus checking of course), they get a warning that there is a macro and they are asked to enable or disable.

If they enable, they get the full spredsheet with the macro. If they then save the spreadsheet, the macro is saved as well.

But that's Excel spreadsheets. Would it also work for Word documents? Either email it or send it through the local network.

Mark

- Collapse -
Re: table in macro
Oct 10, 2005 6:58AM PDT

Can't you record the macro to insert the table and format it as you wish?

And I don't see why you couldn't make a new template for this type of document, and instruct your colleagues to base their new documents on this template. You probably already have a fax template, a memo template, a letter template and a report template and now make a whatever-this-form-is-template.
Word has personal templates and workgroup templates, and this certainly is one of the last.

Hope this helps.


Kees