Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2014, 08:09 PM
macropod's Avatar
macropod macropod is online now Add a word 2010 function to template Windows 7 32bit Add a word 2010 function to template Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,385
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Functions cannot be run on their own; they need something else (e.g. a Sub) to run them. For example, you might use:
Code:
Sub Extract_Hyperlinks
doHL
End Sub
Alternatively, if you want to be able to run your code directly, change:


Function doHL()
to:
Sub doHL()
and change:
End Function
to:
End Sub
(this latter change occurs automatically if you do the first one).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a word 2010 function to template Word 2010 form template not working steambc Word 7 08-28-2013 09:05 AM
Add a word 2010 function to template Normal Template in Word 2010 Castor Word 1 03-17-2013 04:27 PM
Add a word 2010 function to template Sub or Function not defined error - GetParaIndex Word 2010 jec1 Word VBA 1 05-24-2012 11:58 PM
Add a word 2010 function to template Word 2010 Startup with template screes mark.osborne Word 3 08-19-2011 04:19 AM
ActiveX controls inserted on a template do not function well ged Word 0 10-21-2010 04:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:10 PM.


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