Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2021, 07:15 PM
SamDsouza SamDsouza is offline How to get respective/relative Line Number of a Paragraph ? Windows 10 How to get respective/relative Line Number of a Paragraph ? Office 2013
Advanced Beginner
How to get respective/relative Line Number of a Paragraph ?
 
Join Date: Aug 2019
Posts: 71
SamDsouza is on a distinguished road
Default

GMaxey

Wonderful

Thanks for the GetLocation Option.
Why do you feel that Getlocation would be disaster with Long Complex document ?
I've not yet have any long Complex document

In all the three cases Even Blank Line/Paragraph between Two Paragraph is considered as Paragraph.

Would it be possible to count no(s) of paragraph without Blank Line/Paragraph ?

Thanks
SamD
Reply With Quote
  #2  
Old 01-21-2021, 08:51 PM
Charles Kenyon Charles Kenyon is offline How to get respective/relative Line Number of a Paragraph ? Windows 10 How to get respective/relative Line Number of a Paragraph ? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by SamDsouza View Post
GMaxey

***
Would it be possible to count no(s) of paragraph without Blank Line/Paragraph ?
***
IMO, this is not practical. As far as Word and vba are concerned, when you press the Enter key you end one paragraph and start on the next. Word does not care whether you type anything first; it is a paragraph.

If you want, you could develop a count of empty paragraphs as an extra step and then subtract it from the total that Word sees.

My preference would be to use styles with inter-paragraph spacing set the way you want and not have the blank paragraphs. Empty paragraphs add to both the size and the complexity of a document.
Reply With Quote
  #3  
Old 01-21-2021, 09:37 PM
SamDsouza SamDsouza is offline How to get respective/relative Line Number of a Paragraph ? Windows 10 How to get respective/relative Line Number of a Paragraph ? Office 2013
Advanced Beginner
How to get respective/relative Line Number of a Paragraph ?
 
Join Date: Aug 2019
Posts: 71
SamDsouza is on a distinguished road
Default

Thanks Charles

Now i understand Every line in word is a paragraph.

Quote:
My preference would be to use styles with inter-paragraph spacing set the way you want and not have the blank paragraphs. Empty paragraphs add to both the size and the complexity of a document
OK.
You , me and other VBA developers will know to set inter-paragraph spacing and styles

What about for the users ? Only way for them is to Select Document or Paragraph and check for style and spacing

So any type of indication thru VBA or any VBA syntax to know what style has been used for inter-paragraph and what spacing has been incorported.
Rather than Selecting document/Paragraph and checking for Space Size after each paragraph

SamD
Reply With Quote
  #4  
Old 01-22-2021, 11:00 AM
Charles Kenyon Charles Kenyon is offline How to get respective/relative Line Number of a Paragraph ? Windows 10 How to get respective/relative Line Number of a Paragraph ? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,584
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by SamDsouza View Post
Thanks Charles

Now i understand Every line in word is a paragraph.

OK.
You , me and other VBA developers will know to set inter-paragraph spacing and styles

What about for the users ? Only way for them is to Select Document or Paragraph and check for style and spacing

***

SamD

Every line is not a paragraph.
In Word, every press of the Enter key creates a Word paragraph.


I suspect that every user, from time to time, uses the Enter key for spacing; I know that I do, in documents.
No well-formed template should.

Again, empty paragraphs add disproportionately to the size and complexity of documents. A large number of the problems reported on forums like this are the result of empty paragraphs that carry formatting. If text is directly formatted, each paragraph mark will carry up to fifty different formatting commands that Word has to interpret on the fly as it renders the document on the screen or print.

Any Word training should include use of styles and inter-paragraph spacing. This is not vba or expert-level material. When I hire staff to do word processing I do test and train. Word is not a typewriter, it is a complex program when used to produce complex documents. Basic Concepts of Microsoft Word - from Shauna Kelly

For simple documents, it is simple to use.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax for inserting blank line before inserting table and after a line or paragraph SamDsouza Word VBA 8 08-04-2019 11:10 PM
Data validation,force cell to be filed with number if respective cell is not empty nicholes Excel Programming 0 08-01-2015 09:08 AM
How to get respective/relative Line Number of a Paragraph ? Hanging relative to the number pmahesha Word 2 04-13-2015 12:16 PM
How to get respective/relative Line Number of a Paragraph ? How to create a table with a number of line depending a number entered by user Cellendhyll Word Tables 3 07-10-2014 05:49 AM
How to get respective/relative Line Number of a Paragraph ? How set up a 'paragraph number'? peytontodd Word 2 12-11-2012 06:55 PM

Other Forums: Access Forums

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