jacques330ci
New Member
- Joined
- Oct 6, 2016
- Messages
- 6
Hello all,
I am experience a problem accessing the custom functions I have created via VBA code in Excel. This occurs in both 2007 and Office 365 versions:
I am able to write the code (see below) for the function named CalculateArea(), compile it successfully with no errors, and it appears in the Declarations drop-down box of the VBA code editor. But when I switch over to the accompanying spreadsheet, I am unable to access the function (it does not appear in the shortcut list when I type "=CalculateArea" into a blank cell; nor does it appear in the Insert Function dialog box). There isn't even a category listed for 'Custom', 'User-Defined', etc. in the Insert Functions dialog box.
Both installations of Excel were made to include all features (everything set to 'Run from My Computer').
Can someone please advise me on what I am missing?
Public Function CalculateArea(Length As Double, Width As Double) As Double
Dim Area As Double
Area = Length * Width
CalculateArea = Area
End Function
Thank you in advance for any help you can provide me. BTW, this website's design is AWESOME!
jacques
I am experience a problem accessing the custom functions I have created via VBA code in Excel. This occurs in both 2007 and Office 365 versions:
I am able to write the code (see below) for the function named CalculateArea(), compile it successfully with no errors, and it appears in the Declarations drop-down box of the VBA code editor. But when I switch over to the accompanying spreadsheet, I am unable to access the function (it does not appear in the shortcut list when I type "=CalculateArea" into a blank cell; nor does it appear in the Insert Function dialog box). There isn't even a category listed for 'Custom', 'User-Defined', etc. in the Insert Functions dialog box.
Both installations of Excel were made to include all features (everything set to 'Run from My Computer').
Can someone please advise me on what I am missing?
Public Function CalculateArea(Length As Double, Width As Double) As Double
Dim Area As Double
Area = Length * Width
CalculateArea = Area
End Function
Thank you in advance for any help you can provide me. BTW, this website's design is AWESOME!
jacques