VBA 134

Visual Basic for Application (or macros) in most applications. Code here can also be used in VBA-Excel
Sorted from new to old.
Card image
ANString_to_ListSelects

Selects items in listbox from ANStringList. Assuming listbox is multi-select ...

Card image
ListItemText_to_ListIndex

Finds the index of an item in listbox (or combobox) It searches for that item ...

Card image
NumberBeforeString_HTML2

Cuts a number that would be found 2 words before certain word inside a block ...

Card image
TemplateLine_10Xs

Two functions to automate the replacing of variables inside a long string. Up ...

Card image
VBInstr_SpaceFriends_BetweenHTMLTags

Searches for string inside string with multiple possibilities, returns ...

Card image
ANmaSafeDeleteFile

Deletes file safely without warnings or error messages. Tries to delete it at ...

Card image
PrevWeekday

Returns date of the previous weekday (Friday, Saturday, Sunday, etc) from ...

Card image
ANmaSearch_AllWords_FromANStr

Checks if string has all words from ANStr inside Retuns 0 if not found or ...

Card image
ArraySort_3Cols

Returns the Array of 3 cols after sorting it

Card image
VBInstr_Any

Returns the index where any of the words from AnStrSearchFor found in SearchIn ...

Card image
RegExPatternMatch

Checks string against pattern using RegEx (VBScript.RegExp). The pattern ...

Card image
CleanArray_2Dim

Cleans an array of 2 dimensions from blank in 1st column. Similar to

Card image
Choose20

Chooses from 20 options based on the passed ID, can have any of these passed. ...

Card image
Choose10

Choosing a return value based on an ID. Since we have Choose2, Choose3 and ...

Card image
CutString12

Cuts string between two numbers that found inside string. Like extract the ...

Card image
IsNumericChar

Checks if character is number or no. Returns True or False Number includes the ...