RAISEEVENT

RAISEEVENT(eventname [,arglist])

Fires an event declared at module level within a class, form or document.


eventnameThe name of the event to raise (String)
arglist(Optional) A comma delimited list of variables.

REMARKS
* If the event has not been declared within the module in which it is raised, an error will occur.
* Use the RaiseEvent Keyword where you want the event to be triggered.
* For the Microsoft documentation refer to learn.microsoft.com

Event MyEvent(ByVal sName As String) 

Sub DoSomething(ByVal sName As String)
   RaiseEvent MyEvent(sName)
End Sub

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top