Public Sub CustomizeFrontEnd_CustomFrontEndItem(ByVal lCustomItem As Long, sPluginProgID As String, vReserved As Variant)

   'lCustomItem          : index of custom item to define

   'sPluginProgID        : Programatic ID of a registerred plug-in which will serve as an available item in then front-end of the application

   'vReserved            : reserved



   

   'NOTE: see comments in CustomizeFrontEnd_UseCustomFrontEnd

   On Error GoTo ErrHandler

   

   If (lCustomItem > 0) Then

       Select Case lCustomItem

           Case 1

               'How to use a website

               sPluginProgID = "HTTP://WWW.BLACKBAUD.COM"

           Case 2

               'This will add the Plug-Ins option

               sPluginProgID = "RE7DOCS.CPLUGINDOCHANDLER"

           Case 3

               'This will add the Calender of all Events

               sPluginProgID = "RE7DOCS.CCALENDARDOCHANDLER"

           Case 4

               'This will add a document

               sPluginProgID = "C:\Test.doc"

           Case 5

               'This will add a plugin

               sPluginProgID = "NonConstitMerge.cNonConstitMerge"

       End Select

   End If

   

   On Error GoTo 0

   

   Exit Sub

   

ErrHandler:

   Dim sErr As String

   sErr = Err.Description

   On Error GoTo 0

   '< place your custom error handling code here >

   MsgBox "Error processing CustomizeFrontEnd_CustomFrontEndItem : " & sErr

   

   Exit Sub



End Sub

Disclaimer: We provide programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Microsoft Visual Basic and the tools used to create and debug procedures. Our Customer Support can help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the VBA and API modules, contact your account manager.