Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2021, 11:42 AM
ranjan ranjan is offline Removing a .... Windows 10 Removing a .... Office 2019
Advanced Beginner
Removing a ....
 
Join Date: May 2021
Posts: 77
ranjan is on a distinguished road
Default Removing a ....

Hi,



I need a macro for removing a dot .... in a document.

condition is not to removed a single " . " before or after followed by a word or sentence.

if a single . followed by another .. or multiple .... has to be removed a " . "completely.

doc type: ".docx" " ".rtf"

Example:

Input: macro...... output : macro

Input : macro.excel output : macro.excel
Reply With Quote
  #2  
Old 05-31-2021, 03:09 PM
macropod's Avatar
macropod macropod is offline Removing a .... Windows 10 Removing a .... 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 a macro for this. It can be done via Find/Replace. The real question, though, is whether you might have a series of period characters (i.e. '.') or an elipsis (i.e. '…')
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-31-2021, 08:29 PM
ranjan ranjan is offline Removing a .... Windows 10 Removing a .... Office 2019
Advanced Beginner
Removing a ....
 
Join Date: May 2021
Posts: 77
ranjan is on a distinguished road
Default

hi,
in my document am having more than 200 tables and line items in a table will be followed by ..... and this dot ( . ) is not a fixed characters to replace manually. it is changes for every single line items in a table. some times having 9 dots , 13 dots, 15 dots, 21 dots and vice versa...

my intention if there is more than one dot then dots should be removed and if there is a only single dot then it shouldnt be removed or it remains fixed usual.

if this is automate by a macro, it will be more helpful to me....
Reply With Quote
  #4  
Old 05-31-2021, 10:57 PM
Guessed's Avatar
Guessed Guessed is offline Removing a .... Windows 10 Removing a .... Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
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

If you want a macro solution, post a sample document that shows what your content actually shows as. The consecutive dots could be other things (spaces, ellipses or tab leaders) so we need to see what it is you want a solution to.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 06-01-2021, 02:12 PM
macropod's Avatar
macropod macropod is offline Removing a .... Windows 10 Removing a .... 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

As per your other thread, a single wildcard Find/Replace could be used to remove all repeated '.' characters from a document, leaving just one '.' in their place. For example:
Find = [.]{2,}
Replace = .
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-03-2021, 10:53 AM
ranjan ranjan is offline Removing a .... Windows 10 Removing a .... Office 2019
Advanced Beginner
Removing a ....
 
Join Date: May 2021
Posts: 77
ranjan is on a distinguished road
Default Removing a ....

Hi,

With reply to previous post am attaching a sample word document having .....

i want to remove the complete dots, if more than one dot (" . ") exists before and after a descriptions in a document.

If there is only one " . " it should be remains fixed and no need to change.

doc type : docx & rtf

PFA.

Is it possible through macro to automate this task...

Please do the needful and thanks in advance.
Attached Files
File Type: docx Example Dot.....docx (125.8 KB, 6 views)
Reply With Quote
  #7  
Old 06-03-2021, 03:04 PM
macropod's Avatar
macropod macropod is offline Removing a .... Windows 10 Removing a .... 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

Kindly read post #5. You do not need a macro for this.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
.... dots removal



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a .... Removing Table mohsen.amiri Word Tables 1 02-27-2016 01:35 AM
Removing a .... Removing duplicates saurabhlotankar Excel Programming 14 05-26-2015 10:13 AM
Removing a .... Removing add in programatically chrismad Word VBA 4 05-14-2014 02:56 PM
Removing a .... Removing tabs Taylor Word 10 11-28-2011 03:38 PM
Removing Custom XML Ulodesk Word 0 06-24-2011 09:01 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:06 AM.


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