Re: How add new table using VBA
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
- From: "Jonathan West" <jwest@xxxxxxxx>
- Date: Tue, 3 Jun 2008 11:50:45 +0100
"Rafal K." <Rafal K.@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:212C02C4-BD3D-49ED-8F36-DD56679A3A19@xxxxxxxxxxxxxxxx
I have a problem with new table:
ActiveDocument.Tables.Add range:=mysec.range, NumRows:=2, NumColumns:=2
mysec.range.InsertBefore Chr(13) & Chr(10) & "text 1"
But the "text 1" is disappearing or is in a cell (1,1) of the table.
How can I add the text before the table??
Add the text first, and insert the table after
Also Do You know how put the new line to the text? Now I'm trying to put
codes in ASCII 13 and 10.
Use the InsertParagraphAfter method
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
.
Relevant Pages
- Re: Mail merge directory using excel file
... Please reply to the newsgroup unless you wish to avail yourself of my ... Doug Robbins - Word MVP ... I need it all in one cell. ... (microsoft.public.word.mailmerge.fields) - Re: I cant get the table cell to split at the page break in Word.
... remove the frame. ... Word MVP FAQ site: http://word.mvps.org ... please post all follow-ups to the newsgroup so ... whole cell is in bulleted form so it should have allowed breaks before. ... (microsoft.public.word.tables) - Re: Mail merge directory using excel file
... Please reply to the newsgroup unless you wish to avail yourself of my ... Doug Robbins - Word MVP ... I need it all in one cell. ... The name that comes after Jane Doe will be one line higher than the ... (microsoft.public.word.mailmerge.fields) - Re: Excel data to Word table template
... Please reply to the newsgroup unless you wish to avail yourself of my ... services on a paid consulting basis. ... Doug Robbins - Word MVP ... the content of each cell in the Word table to the corresponding cell in ... (microsoft.public.word.pagelayout) - Re: replace text with spaces?
... first character that you want to delete and drag down and to the right. ... Please reply to the newsgroup unless you wish to avail yourself of my ... Cell makes me think of Excel. ... Word MVP FAQ site: http://word.mvps.org ... (microsoft.public.word.newusers) |
|