If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > How can i create an add in

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-06, 10:01
mikezcg mikezcg is offline
Registered User
 
Join Date: Oct 2003
Posts: 311
How can i create an add in

i am writing financial functions for end useres. i have found that these functions need to be fully qualified to be used in wks, so a function in Personal.xls would look like :

=PERSONAL.XLS!accruedCoupon()

this starts getting out of hand and is confusing to users.

i would like to create an addin to make my own functions avail via menu.

Any help appreciated
Reply With Quote
  #2 (permalink)  
Old 07-08-06, 10:14
mikezcg mikezcg is offline
Registered User
 
Join Date: Oct 2003
Posts: 311
never mind i got it :

You create a Microsoft® Excel add-in by creating a workbook, adding code and custom toolbars and menu items to it, and saving it as an Excel add-in file.

To create an Excel add-in

1. Create a new workbook, add code to it, and create any custom toolbars or menu bars.
2. On the File menu, click Properties. In the DocumentName Properties dialog box, click the Summary tab, and then use the Title box to specify the name for your add-in, as you want it to appear in the Add-Ins dialog box.
3. Compile the Add-In project by clicking Compile Project on the Debug menu in the Visual Basic Editor.
4. If you want, you can protect the project from viewing as described in Securing an Access, Excel, PowerPoint, or Word Add-in's VBA Project.
5. Save the add-in workbook as type Excel add-in, which has the extension .xla.

Note When you are creating an Excel add-in, pay close attention to the context in which your code is running. When you want to return a reference to the add-in workbook, use the ThisWorkbook property, or refer to the workbook by name. To refer to the workbook that is open in Excel currently, use the ActiveWorkbook property, or refer to the workbook by name.

When you have saved the add-in, you can reopen it in Excel to make changes to the project. The saved add-in no longer has a visible workbook associated with it, but when you open it, its project is available in the Microsoft® Visual Basic® Editor.

Saving the add-in workbook as an Excel add-in sets the IsAddIn property of the corresponding Workbook object to True.

You can debug an Excel add-in while it is loaded. When you load an add-in, its project appears in the Solution Explorer in the Visual Basic Editor. If the project is protected, you must enter the correct password to view its code.
See Also

Excel Add-ins | Loading an Excel Add-in | Running Code Automatically When an Excel Add-in Is Loaded or Unloaded
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On