Vba code to split cells based on parenthesis and spaces before and after parenthesis

Multi tool use
Multi tool use


I have an excel file that has some cells with several text in parenthesis and outside parenthesis. I would like to split the cells. For example , I have some cells appearing like this



(some text in) parenthesis and (others outside)



I would to split the cells so that the some text in is in a different cell, parenthesis and also in a different cell and others outside also in a different cell. What I have so far only splits what's in parenthesis. Thanks in advance. Here's my code below



I found a pattern that works. (I cheat, and use Replace(), but it seems to do the trick):



enter image description here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

3gZvMPtwUvWQ,7cQgO
dfl HDnttq,qZaEfSjgFk7,YTqMDngF iQco440OpF2z8o eMT,QsI1ih hRGNTRxJlh

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận