A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Position insert table



 
 
Thread Tools Display Modes
  #1  
Old February 5th, 2008, 06:36 PM posted to microsoft.public.word.tables
Lodewijk
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  
Old February 19th, 2008, 10:49 AM posted to microsoft.public.word.tables
Stefan Blom
external usenet poster
 
Posts: 8,433
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.