+ Reply to Thread
Results 1 to 2 of 2

How to use offset in a word table?

Hybrid View

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    How to use offset in a word table?

    Hi!

    I'm tryn to figure out how to use offset in a word table, to get some values out of the cells.
    Since this doesn't work:
            For Each oCell In AppWord.ActiveDocument.Tables(1).Columns(2).Cells
            If oCell.Range.Text = Chr(13) & Chr(7) Then
                MsgBox "Cell(" & oCell.Row.Index & "," & oCell.Column.Index & ") is empty."
                oCell.Offset(0, -1).Range.Text = oCell.Offset(-1, -1).Range.Text + 1
                oCell.Range.Text = "Certifikat2"
    The red part doesn't work of course
    The green one does.
    Does anyone know what is used in word for offesting from the cell instead of .Offset?

    Thanks

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: How to use offset in a word table?

    Again. Never mind I, found a way to move around

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1