excel vba- extract text between 2 characters
问题 If i had this column: ColA ----- NUMBER(8,3) NUMBER(20) I need a VBA function that would go (note these start and end string would only ever appear once in a cell): extract_val(cell,start_str,end_str) ie. extract_val(A1,"(",")") and give the results: 8,3 20 I only need to use this function within other vba code not by putting it as a formula on the sheet. UPDATE (thanks to the answer, i settled on:) --------------------------- Public Function extract_value(str As String) As String Dim openPos