Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9  
Old 02-12-2016, 01:03 PM
ptmuldoon ptmuldoon is offline UserForm of Autotext Entries Windows 7 64bit UserForm of Autotext Entries Office 2013
Advanced Beginner
UserForm of Autotext Entries
 
Join Date: Sep 2014
Posts: 93
ptmuldoon is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
It appears that a list/combobox column limit is 2047 characters. Why are you trying to but the Value of an autotext in a combobox anyway?
Well, my initial thought/logic was in creating a userform that that listed specific Autotext entry's, and the user could then chose the one they want from the form and insert the autotext into body of a document.

I guess I could rework the code to only include a Name of the Autotext item as the combobox value. And use the command button code to query the result and post that full autotext?

I'll be boarding a plane soon, so hope to do some experimenting while traveling later today. I forgot how much fun this stuff could be

EDIT.

I just tried this in a command button, but seems the text being added to the document was still truncated?

Code:
For lngIndex = 1 To objTemplate.BuildingBlockEntries.Count
    Set oBuildingBlock = objTemplate.BuildingBlockEntries.Item(lngIndex)
    If oBuildingBlock.Name = ComboBox2.Text Then
      Selection.TypeText oBuildingBlock.Value
    End If
  Next lngIndex
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform calls other userform, then populate worksheet Lehoi Excel Programming 0 02-03-2016 02:58 PM
VBA Code in a UserForm module to delete a Command Button which opens the userform Simoninparis Word VBA 2 09-21-2014 03:50 AM
UserForm of Autotext Entries Is it possible to take an input from a UserForm in one document to a UserForm in a do BoringDavid Word VBA 5 05-09-2014 09:08 AM
Using Word autocorrect and autotext entries in outlook dswapp Outlook 2 11-24-2010 10:18 AM
Maintaining AUtotext Entries from an external table. kelzud Word Tables 0 07-28-2009 01:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:54 PM.


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