Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2025, 06:56 AM
gmaxey gmaxey is offline Limit lines of text in Word Table Cell Windows 10 Limit lines of text in Word Table Cell Office 2019
Expert
Limit lines of text in Word Table Cell
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,621
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default Limit lines of text in Word Table Cell

This is not a question, just a post to follow up on:


https://www.msofficeforums.com/word-...able-cell.html


A dozen years or so ago, out of general frustration with Microsoft's half baked Content Control events, I developed a VBA process for the purpose of detecting user changes made while typing in a content control. It is not pretty or easy but solved a problem I had at the time.


Some time later, I discovered that I could use a similar process to create Word table cell events i.e., OnEnter, OnExit and OnChange:
Word Table Change Events

In that article I had demonstrated limiting cell text to a set character count e.g., 10 characters or 25 characters.


In the attached document, I have changed Paul's procedure to a function and incorporated it to demonstrate a method of limiting text to a set line count.


Constructive comments or suggestions for improvement always welcome.
Attached Files
File Type: docm Table Cell Events Operational Demo Ver 1.1.docm (53.9 KB, 6 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit lines of text in Word Table Cell How to count the number of lines in a Word table cell BillH45 Word VBA 7 10-23-2025 09:02 AM
VBA-Table Word 2019 - Select and move a text from one cell to the adjacent cell to its right, after cdl Word Tables 1 02-05-2023 10:34 PM
Pasting text from Excel cell into word without creating a table, and keeping the in-cell formatting hanvyj Excel Programming 0 08-28-2015 01:15 AM
Text Wrapping on Fixed Lines in a Form field/Table cell okrmjr Word Tables 0 10-30-2009 08:52 AM
Auto-populate an MS Word table cell with text from a diff cell? dreamrthts Word Tables 0 03-20-2009 01:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:04 PM.


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