![]() |
#3
|
|||
|
|||
![]()
Your code with Graham's revisions inserts a table "AT" a bookmark. If you want to "WRAP" the table "IN" the bookmark use:
Code:
Sub ScratchMacro() 'A basic Word macro coded by Greg Maxey Dim oRng As Word.Range, oTbl As Word.Table Set oRng = ActiveDocument.Range.Bookmarks("InsertDuty").Range Set oTbl = ActiveDocument.Tables.Add(Range:=oRng, NumRows:=3, NumColumns:=4) ActiveDocument.Bookmarks.Add "InsertDuty", oTbl.Range lbl_Exit: Exit Sub End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
megatronixs | Word VBA | 9 | 09-05-2020 02:29 PM |
Insert table in document - automatically updates second table in summary? | Mechanic | Word | 2 | 08-01-2012 09:44 PM |
![]() |
Niy | Word | 3 | 03-28-2012 12:18 AM |
Insert image in bookmarks | kroz | Word VBA | 0 | 11-29-2010 04:55 AM |
Using bookmarks in a protected document | Bill Stemp | Word | 0 | 10-16-2010 06:47 AM |