To programmatically add, modify, or read a table cell in a Word document:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syedshaffee
    New Member
    • Jan 2012
    • 91

    To programmatically add, modify, or read a table cell in a Word document:

    hi people,
    i have uploaded a file that has table in word

    This Doc is generated through my user interface in access

    I want to merge the cell after, completion of the generation process

    Is their any way to do so in access please help
    Attached Files
    Last edited by Niheel; Sep 11 '12, 08:25 AM.
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    Why dont you show us your code currently used to create the table? That might make it easier to reply in sense.

    Comment

    • Rabbit
      Recognized Expert MVP
      • Jan 2007
      • 12517

      #3
      This selects and merges cells on a table.
      Code:
      WordApp.Selection.SetRange _
         WordApp.ActiveDocument.Tables(1).Cell(1, 1).Range.Start, _
         WordApp.ActiveDocument.Tables(1).Cell(1, 2).Range.End
      WordApp.Selection.Cells.Merge

      Comment

      • syedshaffee
        New Member
        • Jan 2012
        • 91

        #4
        Thanks rabbit i see if this works

        Comment

        Working...