Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-28-2014, 12:21 PM
Marrick13 Marrick13 is offline Macro to extract AutoTextList Field Screen Tip text Windows XP Macro to extract AutoTextList Field Screen Tip text Office 2010 32bit
Competent Performer
Macro to extract AutoTextList Field Screen Tip text
 
Join Date: Jun 2006
Posts: 102
Marrick13 will become famous soon enough
Default Macro to extract AutoTextList Field Screen Tip text

I am trying to build a macro that extracts both the display text and the screen tip text from an AUTOTEXTLIST field and writes it to a separate Word document table.



Since I have been unable to locate approaches that can do this, I thought the way to go was to loop through all AUTOTEXTLIST fields, capture each field’s display text, write it to a table cell, then loop again through the same fields, but with the codes switched on to reveal the screen tip text (which is in quotes). Unfortunately, I am using the selection method, partly because I don’t know how else to get text enclosed by quotes from a string (evidently there is no “collection” for it, unlike hyperlink links).

I got this to work reasonably well in step mode, but in real time, it extracts the display text but only the first screen tip text. At various times in the code to get the string tip text,, the code-driven selection extends well beyond the desired text to include several paragraphs. I thought that by separating the two extracts (display vs screen tip) would alleviate this, but it made no difference.

I’ve attached this latest version which does two loop sequences through a document, one to get the display and the other to get the screen tip. Can someone suggest a fix or an alternative method?

The macro and its test document are attached.
Attached Files
File Type: docm Screen Tip Format Test-2.docm (52.0 KB, 14 views)
Reply With Quote
 

Tags
autotextlist, extract, field



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to extract AutoTextList Field Screen Tip text Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM
Macro to extract AutoTextList Field Screen Tip text Word 2007 Macro Fillin Field to Text mhblake Word VBA 5 01-08-2014 08:22 AM
Autotextlist Gone Wilson Word 1 04-04-2010 02:44 PM
Macro to extract AutoTextList Field Screen Tip text Extract email address from field zssteen Excel 1 06-19-2009 02:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:48 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft