Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-02-2020, 02:06 AM
Guessed's Avatar
Guessed Guessed is offline Counting the number of changes a macro makes Windows 10 Counting the number of changes a macro makes 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

Try
Code:
Sub DeleteFootnoteNumbers()
Dim x As Long
With Selection.Find
  .ClearFormatting
  .Font.Color = wdColorRed
  .Replacement.ClearFormatting
  .Text = "^2 "
  .Replacement.Text = ""
  .Forward = True
  .Wrap = wdFindContinue
  .Format = True
  Do While .Execute(Replace:=wdReplaceOne)
    x = x + 1
  Loop
End With
MsgBox "Replaced: " & x
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting the number of changes a macro makes need help in counting the number of rows that contain 5 consecutive X Marcia Excel 10 11-25-2018 08:41 PM
Counting the number of changes a macro makes Counting rows with a macro? Jennifer Murphy Word Tables 1 08-23-2016 03:00 PM
Counting the number of changes a macro makes Counting the number of opening of a document sannhei Word 2 03-27-2015 05:40 AM
Counting unique visitors by ward, counting monthly visits by status, editing existing workbook JaxV Excel 9 11-14-2014 12:25 AM
Counting the number of changes a macro makes Counting Number of Months from a static date bremen22 Excel 4 11-25-2013 11:57 AM

Other Forums: Access Forums

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