> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brierley, Sean
> Sent: Wednesday, March 14, 2007 1:22 PM
> 
> Hi,
> 
> How do I use VBA to see if the first item in a paragraph is a Field
> (specifically, a Seq field)?
> 
> Anyone know?
> 
> Cheers,
> 
> Sean


I tried using the range object first without luck. Here's a version
using selection. If field count returns 1 that's your answer. Not very
elegant.

Selection.Range.Paragraphs("1").Range.Select
Selection.Collapse wdCollapseStart
Selection.MoveRight wdCharacter, , True
MsgBox Selection.Fields.Count


______________________________________________

Author Help files and create printed documentation with Doc-To-Help.
New release adds Team Authoring Support, enhanced Web-based help
technology and PDF output. Learn more at www.doctohelp.com/tcp.


DOCUMENTATION & TRAINING WEST 07: THE USER EXPERIENCE

April 18-21, 2007 ~ Vancouver BC ~ Marriott Pinnacle ~ free city tour
40+ sessions * free workshops * free iPod offer * www.doctrain.com
_______________________________________________

Technical Communication Professionals

Post a message to the list: email [EMAIL PROTECTED]

Subscribe, unsubscribe, archives, account options, list info: 
http://techcommpros.com/mailman/listinfo/tcp_techcommpros.com
Subscribe (email): send a blank message to [EMAIL PROTECTED]
Unsubscribe (email): send a blank message to [EMAIL PROTECTED]

Need help? Contact [EMAIL PROTECTED]

Get the TCP whole experience! http://www.techcommpros.com

Reply via email to