Originally Posted by
mazan2010
i note that in data in table that lookup there is this symbol ' before my value
like 'GHG/12536524
i think error coming from it , its possible
Select such a cell, but do not edit it. If you see the apostrophe (') only in the formula input field (and you don't see it in the cell), it doesn't affect the value of the cell. This is a special formatting character (from the Stone Age ) that tells Excel to treat the value as text.
Try this code:
If you're still having trouble with the macro, attach a sample workbook where the code doesn't work.
Artik
Bookmarks