View Single Post
 
Old 04-22-2015, 01:19 AM
Catty Catty is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Nov 2013
Posts: 39
Catty is on a distinguished road
Default How to insert a table using bookmarks in a document

Hi,

I am trying to insert a table at a specific location in my document. Is there an easier way of doing this using bookmarks? Below is what I have been using and I keep getting a "Type Mismatch" error on the second line.

Code:
 Dim myRange As Range
    Set myRange = ActiveDocument.Range.Bookmarks("InsertDuty")
    ActiveDocument.Tables.Add Range:=myRange, NumRows:=3, NumColumns:=4
Reply With Quote