Hi,
I need some help from experts since my VBA skills is not enough for this task.
I have this data looking like this "AB-123456-1". I want to copy only the numbers in between the hyphens, i.e. "123456" in this case. What makes it a bit complicated is that the number of digits may vary. Below are some examples of how the data might look:
AB-13654-4
AB-5849631-8
AB-894651-12
The data is generated in one cell only using XLOOKUP and I will assign the macro to a form control button. The copied number will be pasted manually outside of Excel.
Is there a way to do this using VBA?
Great thanks in advance!
//Mr Krabs
I need some help from experts since my VBA skills is not enough for this task.
I have this data looking like this "AB-123456-1". I want to copy only the numbers in between the hyphens, i.e. "123456" in this case. What makes it a bit complicated is that the number of digits may vary. Below are some examples of how the data might look:
AB-13654-4
AB-5849631-8
AB-894651-12
The data is generated in one cell only using XLOOKUP and I will assign the macro to a form control button. The copied number will be pasted manually outside of Excel.
Is there a way to do this using VBA?
Great thanks in advance!
//Mr Krabs