Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 04-24-2017, 05:12 PM
macropod's Avatar
macropod macropod is offline Turn OFF auto-adding file path as default alternative text for inserted objects Windows 7 64bit Turn OFF auto-adding file path as default alternative text for inserted objects Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,514
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

Try:
Code:
Sub KillAltText()
Application.ScreenUpdating = False
Dim Rng As Range, Shp As Shape, iShp As InlineShape, i As Long
With ActiveDocument
  For Each Rng In .StoryRanges
    With Rng
      For Each Shp In .ShapeRange
        With Shp
          If .Type = msoGroup Then
            For i = 1 To .GroupItems.Count
              .GroupItems(i).AlternativeText = ""
            Next
          End If
          .AlternativeText = ""
        End With
      Next
      For Each iShp In .InlineShapes
        iShp.AlternativeText = ""
      Next
    End With
  Next
End With
Application.ScreenUpdating = True
MsgBox "Finished updating", vbOKOnly
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
alternative text, image, object



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding AddIn with VBA stops recognizing file path troylparrish Word VBA 2 10-20-2015 05:16 AM
Publisher '07--default file path markg2 Publisher 0 02-15-2014 10:22 AM
Turn OFF auto-adding file path as default alternative text for inserted objects insert auto path & file name in ppt 2013 rideninc PowerPoint 1 01-28-2014 05:38 AM
Modify default template to include file path jacl Excel 1 03-26-2011 10:24 AM
Default Text Wrapping when image inserted johnnypalmer Word 2 11-04-2010 12:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:27 PM.


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