View Single Post
 
Old 04-10-2017, 07:29 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote