Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2024, 03:52 PM
Guessed's Avatar
Guessed Guessed is offline Last line of paragraph centered Windows 10 Last line of paragraph centered Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The macro you paid for seems overly complicated to arrive at that solution. You can get that kind of alignment two simpler ways without using a macro to add a special-sized space.

Method 1. Add a tab at the END of the paragraph and apply this paragraph alignment
Selection.ParagraphFormat.Alignment = wdAlignParagraphDistribute

This method is the one I recommend because the text can be edited freely without breaking the layout at any time. You can also apply it quickly to existing text with a style and a simple find/replace macro to make sure there is a tab at the end of every paragraph.



Method 2. There are special alignment tabs which can be inserted into a header/footer (only available via the Header/Footer tab on the ribbon) and then copy/pasted into the body of the document. One of these 'special' tabs allows you to centre the text. It could be used instead of the space shim that the addin placed in your sample doc. The benefit of this is that you don't need to calculate the size of that shim for every paragraph.

This second method is barely better than than the addin method since you still need to work out where the soft return goes and would need to fiddle a lot when the paragraph is subsequently edited to fix it up when line lengths change.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #2  
Old 02-19-2024, 08:25 PM
RRB's Avatar
RRB RRB is offline Last line of paragraph centered Windows 11 Last line of paragraph centered Office 2021
Susan Flamingo
Last line of paragraph centered
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default

Absolutley superb!

Imagine, since Word was born Hebrew users were looking for a solution to this with almost no elegant success. And there you did it! And you can edit the paragraph after this and it keeps the correct form.

No words to express my (and many others in days to come) awesome appreciation!

Susan
Reply With Quote
  #3  
Old 02-19-2024, 08:34 PM
RRB's Avatar
RRB RRB is offline Last line of paragraph centered Windows 11 Last line of paragraph centered Office 2021
Susan Flamingo
Last line of paragraph centered
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 302
RRB is on a distinguished road
Default

Seeing how successful you are, I am going to try my lucky string with another issue that is almost universal in Hebrew literature:

The first word of a paragraph is usually in larger font and bold. No problem: apply the appropriate char style. But here is the string attached: The second line of the paragraph has an indent that exactly corresponds to the beginning of the second word in the first line. Like a little "window" under the first word (of the first line). This was probably born out of a drop cap but we need it without the "drop", Manually is easy to do this but automating it and allowing future editing has been almost possible. So it looks like this: (justified to both sides)

hfdjkashfkfdffdfd djfdkljfklasjdf fjdkfjkdf jfd j jkd kfj jdf kfjdjj
[WINDOW HERE] dfhjfkdhf sj hfjdhf jdhfjdf hdjsfh djshf hj hjf
hfdjk fsdjkf dskhf fhdj fdjfh djsfh djsfh djfh djfhdjs fhd

Any creative ideas?

Thank you and have a good day!

Susan Flamingo
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centered line before and after a word Miguel Word 6 02-05-2023 09:02 AM
Last line of paragraph centered Hard Paragraph after Every Line jcolleenb Word 2 06-08-2020 03:50 PM
syntax for inserting blank line before inserting table and after a line or paragraph SamDsouza Word VBA 8 08-04-2019 11:10 PM
Last line of paragraph centered line separator for paragraph creieru Word 1 06-07-2012 11:11 AM
Last line of paragraph centered How can I make this line look like a paragraph? steeleye Excel 1 07-15-2009 02:13 AM

Other Forums: Access Forums

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