View Single Post
 
Old 10-13-2011, 08:40 AM
Skarab Skarab is offline Windows 7 Office 2003
Novice
 
Join Date: Jun 2010
Posts: 9
Skarab is on a distinguished road
Default 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!
Reply With Quote