I still have no idea what it is that you are trying to do but if you are trying to split
KR-A359-STR-00001-SHT 01 OF 01-00
at the hyphens, there are four elements (0 to 3 not 1 to 4)
If you are trying to display the filename in a filename field then you need to update the field after saving the document then save that change.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
|