Useful BASIC macro codes for LibreOffice Calc
The custom functions and procedure aims to help new LibreOffice Calc BASIC programmers who are coming rom Microsoft Excel VBA background.
The codes given aims to, somehow, simulate the common functions and procedures in Excel such as:
ACCESSING SHEETS, RANGES, AND COLUMNS
- Sheets("Sheet1")
- Range("A1")
- Columns("A")
SETTING FOCUS TO SHEETS OR RANGES
- Sheets("Sheet1").Activate
- Range("A1").Activate
COPYING VALUES TO CLIPBOARD *) Range("A1").Copy
ACCESSING THE LAST NON-EMPTY ROW *) Range("A" & Rows.Count).End(xlUp).Row
The other useful procedures are:
- Removing Duplicates
- Applying a Standard Filter
- Checking if the given string is an email address
- Comparing a given string with a Regular Expression