Hey guys,
*trying my best to describe what I want to ask*
I was wondering if it's possible to create a function in which I can choose from a list of parameters which argument to select
Example :
If you want to create a function like a msgbox and you press space after it the info tip with what arguments are required is displayed. On the second argument named " buttons as vbmsgboxstyle" when you press "," to access it you can select different styles of the msgbox from the list. * Pictured added for this case.
Questions :
1. how is this method called because on Google I have not found anything that can explain to me simple what I am looking for
2. How i can make a function / sub like that
3. For a simple example i will add a simple code of windows special folders i order to get a list from it?
Function GetSpecialFolderNames()
Dim objFolders As Object
Set objFolders = CreateObject(“WScript.Shell”).SpecialFolders
MsgBox objFolders(“desktop”)
MsgBox objFolders(“allusersdesktop”)
MsgBox objFolders(“sendto”)
MsgBox objFolders(“startmenu”)
MsgBox objFolders(“recent”)
MsgBox objFolders(“favorites”)
MsgBox objFolders(“mydocuments”)
End Function
Bookmarks