Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2022, 08:30 PM
balavaka balavaka is offline More than 10000 References can help Windows 10 More than 10000 References can help Office 2013
Novice
More than 10000 References can help
 
Join Date: May 2021
Posts: 25
balavaka is on a distinguished road
Default More than 10000 References can help


Input

1. Mezher, T.; Fath, H.; Abbas, Z.; Khaled, A. Techno-Economic Assessment and Environmental Impacts of Desalination Technologies, Desalination, 2011, 266(1–3), 263–273

Need to change.


Output

1. Mezher, T.; Fath, H.; Abbas, Z. and Khaled, A. Techno-Economic Assessment and Environmental Impacts of Desalination Technologies, Desalination, 2011, 266(1–3), 263–273.


insert and before last name and end dot at end of the paragraphs.
Attached Files
File Type: docx Input Sample.docx (43.1 KB, 5 views)
File Type: docx Output Sample.docx (13.8 KB, 4 views)
Reply With Quote
  #2  
Old 01-14-2022, 08:56 PM
macropod's Avatar
macropod macropod is offline More than 10000 References can help Windows 10 More than 10000 References can help Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You don't need VBA for this - it can be done with a wildcard Find/Replace, where:
Find = ; ([!;]@. [A-Z][a-z])
Replace = , and \1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-14-2022, 09:03 PM
balavaka balavaka is offline More than 10000 References can help Windows 10 More than 10000 References can help Office 2013
Novice
More than 10000 References can help
 
Join Date: May 2021
Posts: 25
balavaka is on a distinguished road
Default for end period

Thanks Macropod

for end period for the paragraphs.
Reply With Quote
  #4  
Old 01-14-2022, 10:08 PM
macropod's Avatar
macropod macropod is offline More than 10000 References can help Windows 10 More than 10000 References can help Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Find = ([!.])^13
Replace = \1.^p
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
More than 10000 References can help what happened to my references??? LMHmedchem Word 3 10-06-2017 04:31 PM
About Cross-references mohsen.amiri Word 1 01-19-2017 10:35 AM
More than 10000 References can help How to add 10000 numbers in a list without dragging down Pleasehelpmewithexcel Excel 3 12-18-2015 06:46 AM
Convert manual cross references in footnotes to other footnotes to automatic cross references ghumdinger Word VBA 7 11-20-2014 11:47 PM
Cross References egcharles Office 0 04-19-2009 06:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:31 PM.


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