Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

Bold the last word in vb

I know this will bold the last line:

myDOc.Sentences.Last.Bold = True

How can I bold the last "word"
Avatar of Daniel Wilson
Daniel Wilson
Flag of United States of America image

Is this in MS Word?  What version?
Avatar of al4629740

ASKER

yes, ms word 2003
myDOc.Sentences.Words(myDOc.Sentences.Words.count-1).Bold = True
SOLUTION
Avatar of EDDYKT
EDDYKT
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I get "data member not found.."  Why is this happening?
I tried:
myDOc.Words.Last.Bold = True

But it does not do anything.  Why Not?????
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial