Creating "Help files" for use with User Defined Functions

dicktimmerman

New Member
Joined
Jan 11, 2018
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm writing some hopefully usefull "UDF's" for engineering purposes.
As far as only I'm working with these functions, I'll be able to fill in the correct things, however, if somebody else would use the functions, he wouldn't know where to start.
I've noticed that if you "right click" on the project naem in the project browser, you'll find the option "Properties" a screen is shown with "Help-Filename" where you can enter a file with the ".HLP" extension.
Anyone who knows how to create such a file and how it should be formatted to let excel read this file?
 

Attachments

  • 2021-07-27.png
    2021-07-27.png
    8 KB · Views: 11

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You can add some modest help information that will appear in the Function Arguments dialog box that appears when you click on fx button.

example

VBA Code:
Option Explicit

Sub AddDiscription()
    Application.MacroOptions Macro:="TestFunction", _
    Description:="Test Function adds up to three numerical parameters" _
    & vbCrLf & "a = first input (0 if not supplied)" _
    & vbCrLf & "b = second input (0 if not supplied)" _
    & vbCrLf & "c = third input (0 if not supplied)"
End Sub

Public Function TestFunction(Optional a As Variant = 0, Optional b As Variant = 0, Optional c As Variant = 0) As Double
    TestFunction = a + b + c
End Function

1627404313902.png
 
Upvote 0
Solution
Is it depending on whether you use Office 365 or not?
Copypasted JGordon11's code to try out, nothing happened.

Also Fluff his suggestion isn't working in my version. I can Add text but when OK is clicked, all seems to disappear.


Edit: Probably did something wrong, JGordon11's solution shows some text.
 
Upvote 0

Forum statistics

Threads
1,215,749
Messages
6,126,661
Members
449,326
Latest member
asp123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top