Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2017, 08:55 PM
mohsen.amiri mohsen.amiri is offline Checking Captions Windows 8 Checking Captions Office 2013
Competent Performer
Checking Captions
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default Checking Captions

How can I find out that which photo in a document has not identified Caption automatically not searching manually? My document has so many Captioned photos and I just want to check if there is a photo WITHOUT Caption or not.
Reply With Quote
  #2  
Old 11-09-2017, 09:07 PM
macropod's Avatar
macropod macropod is offline Checking Captions Windows 7 64bit Checking Captions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

There is no simple way of doing this, since the captions could appear in the same paragraph or in a separate paragraphs above or below the picture (the caption might even be in a textbox), and where the picture may or may not be formatted inline.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-09-2017, 09:43 PM
mohsen.amiri mohsen.amiri is offline Checking Captions Windows 8 Checking Captions Office 2013
Competent Performer
Checking Captions
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

macropod
All images are inline with text. All captions are defined with 'Insert Caption' and all of them are below images. I mean all images have same formatting and all captions have same formatting too.
Reply With Quote
  #4  
Old 11-09-2017, 10:09 PM
macropod's Avatar
macropod macropod is offline Checking Captions Windows 7 64bit Checking Captions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Quote:
Originally Posted by mohsen.amiri View Post
All captions are defined with 'Insert Caption' and all of them are below images.
But are they all in the same paragraph, a separate paragraph, or a mix of the two?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 11-09-2017, 10:29 PM
mohsen.amiri mohsen.amiri is offline Checking Captions Windows 8 Checking Captions Office 2013
Competent Performer
Checking Captions
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

No, photos and their captions are not in the same paragraph.
Reply With Quote
  #6  
Old 11-09-2017, 10:31 PM
macropod's Avatar
macropod macropod is offline Checking Captions Windows 7 64bit Checking Captions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

OK, since they're not in the same paragraph, what else is between them?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 11-09-2017, 10:48 PM
mohsen.amiri mohsen.amiri is offline Checking Captions Windows 8 Checking Captions Office 2013
Competent Performer
Checking Captions
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

Nothing is between them. Have a look at photo:
Attached Images
File Type: jpg 1.jpg (35.1 KB, 13 views)
Reply With Quote
  #8  
Old 11-09-2017, 10:52 PM
macropod's Avatar
macropod macropod is offline Checking Captions Windows 7 64bit Checking Captions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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 the following macro. It will exit at the first uncaptioned inlineshape. Fix that, then re-run to find the next uncaptioned inlineshape, and so on.
Code:
Sub FindUncaptionedInlineShape()
Dim iShp As InlineShape, Rng As Range, Fld As Field, bCapt As Boolean
With ActiveDocument
  For Each iShp In .InlineShapes
    Set Rng = iShp.Range.Paragraphs.Last.Next.Range.Paragraphs.Last.Range
    With Rng
      If .Fields.Count = 0 Then
        iShp.Range.Paragraphs.Last.Range.Select
        Exit Sub
      Else
        bCapt = False
        For Each Fld In .Fields
          If Fld.Type = wdFieldSequence Then
            If Split(Trim(Fld.Code.Text), " ")(1) = "Figure" Then
              bCapt = True: Exit For
            End If
          End If
        Next
        If bCapt = False Then
          iShp.Range.Paragraphs.Last.Range.Select
          Exit Sub
        End If
      End If
    End With
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 11-09-2017, 10:56 PM
mohsen.amiri mohsen.amiri is offline Checking Captions Windows 8 Checking Captions Office 2013
Competent Performer
Checking Captions
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

Ill try it. thanks.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking Captions VBA to insert captions without appending to existing captions Marrick13 Word VBA 17 03-21-2023 07:51 PM
Checking Captions Spell checking kirkm Word VBA 3 09-16-2016 11:35 PM
Checking Captions Some captions getting screwed up when fixing other captions oliboi Word 2 08-30-2016 02:55 PM
Checking Captions Captions: Changing captions in Appendix update all captions carnestw Word 3 10-27-2015 12:34 PM
Checking Captions Help with checking available times Deepy Excel 1 02-14-2011 05:06 PM

Other Forums: Access Forums

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