O
O
Oleg2022-02-11 12:15:55
Visual Basic
Oleg, 2022-02-11 12:15:55

How to find all values ​​in an Excel table using VBA script and execute RegEx on them?

Greetings.
There is a table with data. There is a working RegEx pattern. We need a script (macro) that
will execute the given pattern over each cell with data.
For example, it will remove characters from a string using RegEx.
Can eat some example on refactoring. I will be grateful.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2022-02-11
@Iv_and_S

How to Find All Values ​​in an Excel Table

to find? or take a range?
Take range is an object Rangein VBA.
after receiving the data, we perform operations on them.
Создание объекта RegExp используя позднее связывание:
Dim myRegExp As Object
Set myRegExp = CreateObject("VBScript.RegExp")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question