![]() |
#1
|
|||
|
|||
![]()
Hi Everyone,
First time here and a VBA noob. I have one, multi-row, 3-column table in the doc. I've figured out this code to target a specific table cell and determine if its contents are within a certain character limit--if not, the writer gets an error message. This is just one of several If statements (all the same code, just checking different cells) If Len(Selection.Tables(1).Cell(Row:=3, Column:=3).Range) > 40 Then MsgBox "40 Char Description: Exceeded Character Limit of 40 " & "(" & Len(Selection.Tables(1).Cell(Row:=3, Column:=3).Range) - 2 & ")" End If Everything was fine until I was asked to add 3 more identical tables to the doc. Then I got: "The requested member of the collection does not exist" Any thoughts? Thanks everyone! |
Tags |
error, range, table |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
droseman | Word | 1 | 09-05-2014 05:39 PM |
![]() |
Toto | Word | 1 | 06-07-2014 03:51 PM |
Using reference table | BritBiker2 | Excel | 3 | 02-23-2013 05:27 AM |
Why does Word separate table and reference endnotes by allowing text to go in between | newby2013 | Word Tables | 2 | 12-31-2012 03:45 PM |
How do I reference a merged cell in a multi column & row table in MS Word ('03')? | jihanemo | Word Tables | 0 | 03-18-2009 08:33 AM |