Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-03-2014, 07:21 AM
gmaxey gmaxey is offline Split a paragraph Windows 7 32bit Split a paragraph Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

Since this is a VBA forum, perhaps the OP needs a VBA solution:

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
If Selection.Paragraphs(1).Range.Words.Count > 2000 Then
  Selection.InsertParagraph
End If
End Sub

__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #2  
Old 10-03-2014, 09:46 PM
gmayor's Avatar
gmayor gmayor is offline Split a paragraph Windows 7 64bit Split a paragraph Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Quote:
Originally Posted by gmaxey View Post
Since this is a VBA forum, perhaps the OP needs a VBA solution:
Undoubtedly, but it would need a lot more information in order to provide that. Is the paragraph 2000 words or does it need to be split at 2000 words?

What constitutes a 'word' and where in relation to that 2000th word should the text (I hesitate to call it a paragraph) be split? At the end of the 2000th word? At the end of the current sentence? At the beginning of the current sentence? Does the text even have sentences?

If the former, the task is impossible. You cannot produce a grammatically correct text by splitting a larger text using VBA. A paragraph is more than simply an arbitrarily broken piece of text. Hence my earlier reply.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Split Slide Akip Tsaqif PowerPoint 0 09-07-2014 10:50 PM
How to split .pst file annabrown8812 Outlook 1 10-03-2013 04:27 AM
Split a paragraph Narrow Paragraph to Wide Paragraph HELP icloudy Word 1 12-09-2012 03:49 PM
Split a task fridos Project 2 05-30-2011 11:19 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:22 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