Turning Data extraction into an inserted module.

DSNTNOENUF

New Member
Joined
Aug 3, 2015
Messages
32
I am using the following formula to extract data between carrots and it works flawlessly.

=MID(B3,FIND("^",B3)+1,FIND("^",B3,FIND("^",B3)+1)-1-FIND("^",B3))

What I would like to do is to be able to bring up VBA and paste code to add this function to my selectable list (such as fuzzyvlookup). The formula referencing cell values would have to be replaced with active.cell

Can anyone assist me in this final step? If I am getting really picky would there by a simple userform that could be switched on and off that would ask for the beginning character and ending characters to search between so a not so adept user did not have to fiddle with the code? I say on/off because if it was a large carrot or pipe file I would set the user form visibility to false and just define the character.

Cheers!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,216,150
Messages
6,129,154
Members
449,488
Latest member
qh017

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top