Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Lodewijk Lodewijk is offline
external usenet poster
 
Posts: 4
Default Position insert table

Word 2000 sr1
I have a text (part) and after this Iplaced a bookmark. I insert a table
after a bookmark. But what happens it that the table starts at the next line
and I can get it behind the text line.
This the code
Set oRange = ActiveDocument.Bookmarks("deeltabel").Range
oRange.Collapse Direction:=wdCollapseEnd

Set oTable = ActiveDocument.Tables.Add(oRange, rs_projlnk.RecordCount,
1)

ActiveDocument.Tables(1).PreferredWidth = CentimetersToPoints(4)
ActiveDocument.Tables(1).Range.Font.Size = 10
ActiveDocument.Tables(1).Range.Font.Name = "arial"

'column width adjust
ActiveDocument.Tables(1).Columns(1).Width = CentimetersToPoints(4)
' Horizontal position
ActiveDocument.Tables(1).Rows.RelativeHorizontalPo sition =
wdRelativeHorizontalPositionMargin
'move table to the right
ActiveDocument.Tables(1).Rows.SetLeftIndent LeftIndent:=120.5,
RulerStyle:= _
wdAdjustNone
I would like to move the table up like I move it to the right.
Maybe there is better solution but I search the forum on insert table but
couldn't find anything useful.
  #2   Report Post  
Posted to microsoft.public.word.tables
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default Position insert table

You may want to ask in a programming newsgroup such as
microsoft.public.word.vba.general; there, you'll have a better chance to get
help with this. Be sure to tell exactly what you are trying to accomplish.

--
Stefan Blom
Microsoft Word MVP


"Lodewijk" wrote in message
...
Word 2000 sr1
I have a text (part) and after this Iplaced a bookmark. I insert a table
after a bookmark. But what happens it that the table starts at the next
line
and I can get it behind the text line.
This the code
Set oRange = ActiveDocument.Bookmarks("deeltabel").Range
oRange.Collapse Direction:=wdCollapseEnd

Set oTable = ActiveDocument.Tables.Add(oRange,
rs_projlnk.RecordCount,
1)

ActiveDocument.Tables(1).PreferredWidth = CentimetersToPoints(4)
ActiveDocument.Tables(1).Range.Font.Size = 10
ActiveDocument.Tables(1).Range.Font.Name = "arial"

'column width adjust
ActiveDocument.Tables(1).Columns(1).Width = CentimetersToPoints(4)
' Horizontal position
ActiveDocument.Tables(1).Rows.RelativeHorizontalPo sition =
wdRelativeHorizontalPositionMargin
'move table to the right
ActiveDocument.Tables(1).Rows.SetLeftIndent LeftIndent:=120.5,
RulerStyle:= _
wdAdjustNone
I would like to move the table up like I move it to the right.
Maybe there is better solution but I search the forum on insert table but
couldn't find anything useful.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
position of text in table Amy Tables 2 July 3rd 07 06:27 AM
How to insert the Endnote at any desirable position? Dan Microsoft Word Help 3 February 17th 07 07:51 PM
Lock position of a table in a form? *O*T*C*Sleepy Microsoft Word Help 1 June 1st 06 11:22 PM
How do i Place Table at specified position in Word Document [email protected] Tables 1 January 20th 06 05:37 PM
Moving Position of Table on a Page Dee Tables 1 October 21st 05 08:42 PM


All times are GMT +1. The time now is 01:36 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"