Reply
 
Thread Tools Display Modes
  #1   Report Post  
Steved
 
Posts: n/a
Default a macro to find the last Character please

Hello from Steved

Tokiocity That Figures

Using the above as examples please how would I write a macro to find the
last character
ie in Tokiocity it would be y
ie in That Figures it would be s

Thankyou.




  #2   Report Post  
Doug Robbins
 
Posts: n/a
Default

MsgBox
Selection.Paragraphs(1).Range.Words(1).Characters( Selection.Paragraphs(1).Range.Words(1).Characters.
_
Count - 1)
MsgBox
Selection.Paragraphs(1).Range.Words(Selection.Para graphs(1).Range.Words.Count
- 1).Characters
_((Selection.Paragraphs(1).Range.Words(Selection.P aragraphs(1).Range.Words.Count
- 1).Characters.Count))


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
"Steved" wrote in message
...
Hello from Steved

Tokiocity That Figures

Using the above as examples please how would I write a macro to find the
last character
ie in Tokiocity it would be y
ie in That Figures it would be s

Thankyou.






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mega macro with find and replace (HELP!) DKM Microsoft Word Help 1 May 10th 05 06:15 PM
Ms Word Find All option in vba Macro Karunakar New Users 5 March 24th 05 03:13 PM
How do I find my macro files for word so I can import them to my . hikingbarbiedoll Microsoft Word Help 1 March 2nd 05 10:50 PM
Where can I find Word Macro Examples? Tieu New Users 2 January 28th 05 06:54 PM
Should be simple! Macro to find italics won't run LizW Microsoft Word Help 2 November 30th 04 06:32 PM


All times are GMT +1. The time now is 05:28 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"