Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-13-2011, 08:40 AM
Skarab Skarab is offline creating a custom field and using it in a template Windows 7 creating a custom field and using it in a template Office 2003
Novice
creating a custom field and using it in a template
 
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
 



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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft