AnsweredAssumed Answered

vrf ActiveX - MS Word: How do I add Table

Question asked by papineni_vinod on Feb 23, 2005
Shawn,

Thanks! I got that working, i.e., inserting table in the main body:

Set wRng = wWnd.ActiveDocument.Range(0,0);
Set wTbl = wApp.ActiveDocument.Tables.Add(wRng,5,10);

I would also like to insert a table in the header

I am able to insert text in the header, using:
============
Set wWnd = wApp.ActiveWindow;
Set wSel = wApp.Selection;

wWnd.ActivePane.View.SeekView = wdSeekCurrentPageHeader;
wSel.TypeText ("Report Header");
============

But the table always inserts into the main body.

-Vinod

--- Shawn Fessenden <shawn@testech-ltd.com> wrote:

> > That didn't help... I am still learning ActiveX
>
> Oh... OOPS!
>
> Ok, I don't have any Word examples (at least not with tables) but
> here's a
> couple things ArBot found in the archive:
>
> SubjectContains = word
> BodyContains = table
> HasAttachment = yes
>
> ---
>
> From        = Hill, Lenny <address withheld for privacy>
> Date        = 9/28/2004 1:02:54 PM
> Subject     = [vrf] RE: implementing graphic from HP8753E into
> editable
> version on  Microsoft word
> MessageID   = 0000000011C77702B4B2CB4A9FD20D99053FF730E45A3800
> Attachments = plot_to_network hpgl.vee (11.8KB), footer.txt (433B)
>
> ---
>
> From        = Hejsek Frantisek <address withheld for privacy>
> Date        = 9/29/2004 3:59:05 AM
> Subject     = [vrf] RE: implementing graphic from HP8753E into
> editable ver
> sion on  Microsoft word
> MessageID   = 0000000011C77702B4B2CB4A9FD20D99053FF730C45C3800
> Attachments = Attachments.zip (127.4KB), footer.txt (433B)
>
> ---
>
> From        = Hill, Lenny <address withheld for privacy>
> Date        = 9/29/2004 8:21:38 AM
> Subject     = [vrf] FW: RE: implementing graphic from HP8753E into
> editable
> version on  Microsoft word
> MessageID   = 0000000011C77702B4B2CB4A9FD20D99053FF730045D3800
> Attachments = Hpglim32.flt (238.1KB),
> ATTACHMENT_OR_CONTENT_BLOCKING_HPGL.reg.TXT (313B), readme.txt
> (1.7KB),
> footer.txt (433B)
>
> ---
>
> Reversing the search terms returned almost exactly the same thing.
> Maybe try
> these:
>
> http://www.oswegosw.com/SearchVRF.php?an=word
> http://www.oswegosw.com/SearchVRF.php?an=table
>
> Hmmm... maybe try searching for attachments named tabel too
> -SHAWN-
>
>
>
> ---
> You are currently subscribed to vrf as: papineni_vinod@yahoo.com
> To subscribe send a blank email to
> "join-vrf@it.lists.it.agilent.com".
> To unsubscribe send a blank email to
> "leave-vrf@it.lists.it.agilent.com".
> To send messages to this mailing list,  email "vrf@agilent.com". 
> If you need help with the mailing list send a message to
> "owner-vrf@it.lists.it.agilent.com".
>



          
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes