#1
|
|||
|
|||
creating a custom field and using it in a template
Hi all,
I am working on creating a report template which can be applied to a number of different "sites". I would like to run a Macro on template start which prompts the user to enter the site name. the macro would look like this: Private Sub Workbook_Open() InputBox ("Enter site name") End Sub I would like to write this site name into a field which I can place throughout the body of the document (sort of like a cell or name reference in excel). Can anyone help me with the additional code required and the creation of a custom field from this code? Alternatively, if there's an easier way to do this I'd love to hear it. Many thanks! |
#2
|
||||
|
||||
Use Fields FILL IN & REF, Use of bookmark
One option you could choose is to have your Site Name as a FILL IN field, select this field and and set a bookmark. Then use the REF field to include the bookmark.
Use Control + A to select the document and Alt + F9 to update all the fields. When you create a new document from your template it will bring up the FILL IN Field dialog box. |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
Example of Document attached, you will need to save it as a template
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating document from template but macros are still linked to template | webharvest | Word | 0 | 07-16-2011 09:34 AM |
Creating a custom transition speed? | watsonstudios | PowerPoint | 0 | 05-20-2011 08:17 PM |
Add custom field to print style | steino | Outlook | 0 | 03-31-2011 12:03 PM |
Creating A Input Or Output Field | skoz55 | Excel | 0 | 08-15-2009 04:40 PM |
Custom Fields : Creating New Field Types. | KarthikR | Word | 0 | 12-04-2005 12:47 PM |