View Single Post
 
Old 11-29-2014, 12:02 PM
Marrick13 Marrick13 is offline Windows XP Office 2010 32bit
Competent Performer
 
Join Date: Jun 2006
Posts: 102
Marrick13 will become famous soon enough
Default Macro to extract AutoTextList Field Screen Tip text

Greg,

That code works great - thanks!

And thanks for all the free code and help that you provide online. I'd like to offer you the attached "Count_Column_Items" macro that I cobbled together recently to be able to count the entries in a Word column regardless of whether they are numeric or non-numeric (which =COUNT ignores). I had to work out a way to determine if the cursor was actually inside a table (because wdWithInTable tells VBA the cursor is in a table even when it's to the immediate right of a table, which causes an error when trying to get the column number).

The code might be awkward but it works...feel feel to offer it to others on your site.
Attached Files
File Type: txt Count_Column_Items (Word macro).txt (15.6 KB, 14 views)
Reply With Quote