Search notes:

VBA: attribute VB_Description

The VB_Description attribute allows to add a description to a subs and functions.
A modules that uses attributes must be inserted into a VBA project, not copy pasted.
attribute vb_name = "DescribeSubsAndFunctions"
option explicit

sub thisIsASub()
    attribute thisIsASub.vb_description = "This is the sub's description"
    debug.print "thisIsASub"
end sub

function thisIsAFunction as string
    attribute thisIsAFunction.vb_description = "This is the function's description"
    thisIsAFunction = "foo bar baz"
end function
Github repository about-VBA, path: /attribute/DescribeSubsAndFunctions.bas
After inserting the module, the description of the sub or function can be viewed by pressing F2:

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758185588, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/VBA/attribute/vb_description(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78