Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, USA
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table Cell Reference Macro (Word 2002)

    At one time, Word came with stock macros. I was just given the 2002 version and there aren't any stock macros listed. I'm working on a complex table/form (every line has a difference number of columns). I need to sum cells that are not together and I need the table cell reference macro to get the cell address of all the cells. The only info I can obtain is the bookmarks (text4, text7, text11, etc.). Can anyone help?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Table Cell Reference Macro (Word 2002)

    You can find an alternative macro in Finding a Cell Reference.

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: Table Cell Reference Macro (Word 2002)

    Have you been through the demonstration Word document that Macropod created in the post Word Field Maths?
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: Table Cell Reference Macro (Word 2002)

    Hi,

    Try this simple code:

    Sub CellAddress()
    If Selection.Information(wdWithInTable) = True Then StatusBar = "Cell Address: " & Chr(64 + Selection.Cells(1).ColumnIndex) & Selection.Cells(1).RowIndex
    End Sub

    It outputs the cell address on the status bar.

    Cheers
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  5. #5
    New Lounger
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, USA
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table Cell Reference Macro (Word 2002)

    Thanks for your help again!!!

Posting Permissions

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