I'm tryin to use the MID function to isolate a string in parenthesis inside a cell, such as blah (text) blahhhhhh. i just want to retrieve the work "text"
I tried
ActiveCell.Value = Mid(ActiveCell.Text, InStr(ActiveCell.Text, "("
+ 1, InStr(ActiveCell.Text, "
"
- 1)
but it would only end up as text) blahh
i figured if i used the instr function correctly to remove everythign from the opening parenthesis to the beginning, then Id use the 2nd instr function correctly, but apparently it's working not from the original cell text, but after the first instr executes, thats why since the closing parenthisis is like 11-characters away from the beginning of the original cell, then my resulting string is text) blahh where the new string ends 11 characters away from the first parenthsis,
if you understand what i was just tryin to say then thats alright, i just need help in isolating just the content inside the parenthesis, thanks!
I tried
ActiveCell.Value = Mid(ActiveCell.Text, InStr(ActiveCell.Text, "("
but it would only end up as text) blahh
i figured if i used the instr function correctly to remove everythign from the opening parenthesis to the beginning, then Id use the 2nd instr function correctly, but apparently it's working not from the original cell text, but after the first instr executes, thats why since the closing parenthisis is like 11-characters away from the beginning of the original cell, then my resulting string is text) blahh where the new string ends 11 characters away from the first parenthsis,
if you understand what i was just tryin to say then thats alright, i just need help in isolating just the content inside the parenthesis, thanks!