Hey all, the cell can contain a number of values (e.g. &W, &H, & , etc). If the test passes, then that means the current string in the cell contains one of the above delimiters. The problem is when I grab the secondary name (the name to the right of the delimiter), part of the delimiter remains because the delimiters contain different character lengths:
cell c output:
W abc c def
H abc c def
abc c def
abc c def
original data in cell A:
abc a def &W abc c
abc a def &H abc c
abc a def & abc c
abc a def &abc c
what I want in cell C:
abc c def
abc c def
abc c def
abc c def
The code:
I was trying to use vbTextCompare to check if the cell contains " &", and if so subtract 1 from the value of pos, but otherwise subtract 2, but it doesn't appear to be doing that.Please Login or Register to view this content.
Thanks for response.
Bookmarks