Hi all
I have a spreadsheet that contains cells with multiple lines - each line has been preceded with a roman numeral to reference the entry:
i. entry 1
ii. entry 2
iii. entry 3
etc
I have written a simple vba script to parse those lines and enter each individual entry into an adjacent cell in the same row but I am having limited success with that due to repeating characters - for example if I use InStr and search for "iv." and "v." to get the string between those two entries it gives a value of 1 as the difference as it finds "v." in the string "iv." on two occasions.
The other approach I thought about was to do a global find/replace in that column using the built in excel function. However, I have the same problem = if I do a global replace on, say, "i." with "1" then I get entries such as "i1." and "ii1." for what was roman ii. and iii.
Does anyone have any help on how to do exact string matching? I've tried using the options in find/replace to look for exact string but that doesn't work.
Any advice would be appreciate.
Thanks!
Bookmarks