VBA 123

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
Reversefile

Reversing a file This tip demonstrates how to reverse a whole file. This ...

Card image
File_MostRecent

Getting most recent file in a folder

Card image
WaitFor + ShellWait

Tell App to wait for number of seconds and Execute command and wait for it ...

Card image
HardDrivePartitionSN

Get Hard drive SN (old fashioned way) using FileSystemObject

Card image
BrowseFolder

Asks user for a folder tested in VBA of word as well as VBA in Excel

Card image
ListBox_SelectedIndexes

Create list of selected items in MSForms listbox as string separated by | Or ...

Card image
GenerateMemorablePassword

Returns a random password that is easier to remember, such as BONES or LAMOT. ...

Card image
FrmAbout

Display a string in a Userform as 'About' window, can display string or file by ...

Card image
FileDate_Formatted

Using FileDateTime to get file date

Card image
Filter_GotoItem

Allow users to select from list box based on search terms. Have a text box and ...

Card image
ComputerSN

Reads Serial number of the system, also can be used to return System name, ...

Card image
FindIn1DArray

Returns 1 if an item found in array, 0 if not

Card image
Numbers in Textbox

Force textbox to accept numbers only. Needs adjustments to work on VB6

Card image
RGB2Long

Converts Red, Green and Blue integers into RGB long value

Card image
RoundUp

Rounds a number up, like Excel function RoundUP

Card image
CutRightString

Cuts a string from a string FROM RIGHT starting from specific character and ...