CutString

Cuts a string from certain char till certain char, can be used to cut left, right and mid section of a string.

Edit 2023-04-23: Adding 'ByVal' to 'StartFromChar' to avoid changing it in VBA
Remove 'ByVal' when using for ASP
Edit 2024-08-03: Fix issue with initial setup for StartFromChar

CodeFunctionName What is this?

Public

Tested

Original Work

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Boldcodes.com

Linkedin Login

FromString, CutFrom, ToString, ByVal StartFromChar

CutString("Hello-World-Cruel", "", "-", 1) = "Hello"
CutString("Hello-World-Cruel", "-","-", 1) = "World"

Views 6,716

Downloads 1,626

CodeID
DB ID