Try replacing vbTab with chr(9).  That's what a press of the tab key sends.

> -----Original Message-----
> From: Mark D. Veerman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 07, 2002 9:24 AM
> To: [EMAIL PROTECTED]
> Subject: Win32::OLE Word tabs
> 
> 
> Hi, I'm sure this is a fairly simple question.
> 
> I've converted a vb macro to Perl, and successfully created a 
> right tab at
> 7.5 inches. Now I need to move the cursur to that tab, but I 
> don't know what
> the Perl equivalent for vbTab is.
> 
> $Selection->ParagraphFormat->{TabStops}->Add({Position=>$Word-
> >InchesToPoint
> s(7.5), Alignment=>wdAlignTabRight, Leader=>wdTabLeaderSpaces});
> $Selection->TypeText({Text=>vbTab . 'Pages: ' . $num_pages});
> 
> I've been looking through Word's object model for moving 
> through tabs with
> no success.
> 
> thanks in advance for any help!
> /mark
> 
> ----------------------------------
> Mark D. Veerman
> Veerman & Associates
> [EMAIL PROTECTED]
> 
> _______________________________________________
> Perl-Win32-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 


This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden. 


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to