![]() |
|
#1
|
|||
|
|||
|
Hello
How can count graphic elements? (Both In-line with text, Tights, Square and ...)? '^g' just count 'In-Line with Text' elements. Mohsen |
|
#2
|
|||
|
|||
|
No one wants to answer?
|
|
#3
|
||||
|
||||
|
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] |
|
#4
|
|||
|
|||
|
macropod
Would you write a macro for me to count all graphics? if you can not do it? |
|
#5
|
||||
|
||||
|
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] |
|
#6
|
|||
|
|||
|
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. |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |
various data needs counting
|
apples | Excel | 2 | 09-16-2012 04:52 AM |
Counting Colors
|
g48dd | Excel | 2 | 03-13-2011 09:28 PM |
Counting Weeks
|
leroytrolley | Excel | 1 | 08-18-2008 11:12 AM |