![]() |
#2
|
||||
|
||||
![]()
Try:
str = Split(.Tables(i).Cell(2, 1).Range.Text, vbCr)(0) As for 'Left(str, len(str) - 1)', you'd need to use 'Left(str, len(str) - 2)', since cells are terminated by a Chr(7) & Chr(13) pair.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to find all string within string. | PRA007 | Word VBA | 18 | 02-12-2016 08:11 PM |
![]() |
kcm5153 | Outlook | 3 | 03-30-2015 10:15 PM |
![]() |
projectpupil7 | Excel | 7 | 11-23-2014 12:03 AM |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
![]() |
geoffm | Excel | 1 | 08-16-2011 11:31 AM |