Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2015, 12:26 AM
mohsen.amiri mohsen.amiri is offline Counting Graphics Windows XP Counting Graphics Office 2007
Competent Performer
Counting Graphics
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default Counting Graphics


Hello
How can count graphic elements? (Both In-line with text, Tights, Square and ...)? '^g' just count 'In-Line with Text' elements.
Mohsen
Reply With Quote
  #2  
Old 06-19-2015, 01:59 PM
mohsen.amiri mohsen.amiri is offline Counting Graphics Windows XP Counting Graphics Office 2007
Competent Performer
Counting Graphics
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

No one wants to answer?
Reply With Quote
  #3  
Old 06-19-2015, 04:18 PM
macropod's Avatar
macropod macropod is online now Counting Graphics Windows 7 64bit Counting Graphics 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

Word's Find/Rerplace tools will only find (and count) in-line graphics. For anything more you'd need a macro.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 06-19-2015, 08:23 PM
mohsen.amiri mohsen.amiri is offline Counting Graphics Windows XP Counting Graphics Office 2007
Competent Performer
Counting Graphics
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

macropod
Would you write a macro for me to count all graphics? if you can not do it?
Reply With Quote
  #5  
Old 06-19-2015, 09:46 PM
macropod's Avatar
macropod macropod is online now Counting Graphics Windows 7 64bit Counting Graphics 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

You could use a macro like:
Code:
Sub CountObjects()
Dim Rng As Range, i As Long, j As Long
With ActiveDocument
  For Each Rng In .StoryRanges
    On Error Resume Next
    With Rng
      i = i + .InlineShapes.Count
      j = j + .ShapeRange.Count
    End With
  Next Rng
  MsgBox "The active document contains:" & vbCr & _
    i & " inline shapes & " & j & " floating shapes."
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-22-2015, 08:52 PM
mohsen.amiri mohsen.amiri is offline Counting Graphics Windows XP Counting Graphics Office 2007
Competent Performer
Counting Graphics
 
Join Date: Aug 2014
Posts: 221
mohsen.amiri is an unknown quantity at this point
Default

Hi
Thank you very much. It did.
Now would you have a look at below thread:
https://www.msofficeforums.com/word/...html#post84527
Thanx in advance.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting Pics mohsen.amiri Word 2 04-19-2015 08:52 PM
Counting unique visitors by ward, counting monthly visits by status, editing existing workbook JaxV Excel 9 11-14-2014 12:25 AM
Counting Graphics various data needs counting apples Excel 2 09-16-2012 04:52 AM
Counting Graphics Counting Colors g48dd Excel 2 03-13-2011 09:28 PM
Counting Graphics Counting Weeks leroytrolley Excel 1 08-18-2008 11:12 AM

Other Forums: Access Forums

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