I have an excel table with around 500 rows. one column (D) contains a text and somewhere in that text there might be a ISBN number, looking something like this "ISBN 123-456-67-8-90". I would like to extract that ISBN (remove it from the cell) and move it to a different cell in the same row (K).
So far I have been able to build a regex for my string
[ISBN]+ [0-9]+-[0-9]+-[0-9]+-[0-9]+-[0-9]+
And I think I also have a rough concept of the outer mechanism that matches my cells:
Sub MoveISBN()
Dim myrange, cell As Range
Set myrange = ActiveSheet.Range("D:D", Range("D:D").End(xlDown))
For Each cell In myrange
If *** HERE GOES MY REGEX SOMEHOW ***
Then *** HERE THE FOUND ISBN IS REMOVED FROM THE CURRENT CELL AND MOVED TO COL K ***
End If
Next cell
Can someone point me in the right direction?