Re: Extract value from table cell

Tech-Archive recommends: Fix windows errors by optimizing your registry



terrchen@xxxxxxxxx wrote:
> Since we are on this topic. Is there anyway I can do string
> manipulations in VB for Microsfot word. For example, can I use
> regular expressions to manipulate a string?

There are the usual VB functions/operators such as Left, Right, Mid, Instr,
and Like. Starting with Word 2000 there are also Split, Join, and Array
which can be useful for this.

You can go to Tools > References and add a reference to the Microsoft
VBScript Regular Expressions 5.5 library. That lets you use the RegExp
object's methods and properties -- see
http://msdn.microsoft.com/library/en-us/script56/html/vsobjRegExp.asp.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


.



Relevant Pages