Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Functions
Resolved · Low Priority · Version 2003
Anna has attended:
Excel VBA Intro Intermediate course
Access Advanced course
Access VBA course
Access VBA course
How do you create a function in VBA?
Hi Anna
A Function always returns a value. The value is assigned to the name of the function
To create a function in VBA do the following:
[Public] Function FunctionName ([Argument list] as Type
Public Function Area (Length As Single, Width As Single) As Single
Area = Length * Width
End Function
Hope this helps
Carlos
|
Excel tip:Using Alt in Save Dialog BoxWhen you are saving (or opening) a file, try these; |
We'll call during UK business hours
Server loaded in 0.07 secs.