Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel: How do I count the number of pictures in an excel cell?

I have access to publically available data that contains "ticks" in cells. I
can copy the data across to Excel and the ticks appear as pictures, all
neatly arranged in the appropriate cell. One tick - one picture, two ticks -
two pictures, there can be up to three ticks / pictures per cell. I can count
them and enter the number of ticks manually but this is time consuming and
liable to mistakes.

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Excel: How do I count the number of pictures in an excel cell?

John,

The first macro below will put the count into the column to the right of the cells with the shapes,
and leave the shapes alone. The second macro will put the count into the cell with the shapes, and
remove the shapes.

HTH,
Bernie
MS Excel MVP

Sub CountShapes()
Dim mySh As Shape

For Each mySh In ActiveSheet.Shapes
mySh.TopLeftCell.Value = mySh.TopLeftCell.Value + 1
Next
End Sub

Sub CountAndRemoveShapes()
Dim mySh As Shape

For Each mySh In ActiveSheet.Shapes
mySh.TopLeftCell.Value = mySh.TopLeftCell.Value + 1
mySh.Delete
Next
End Sub


"John of Fyfett" <John of wrote in message
...
I have access to publically available data that contains "ticks" in cells. I
can copy the data across to Excel and the ticks appear as pictures, all
neatly arranged in the appropriate cell. One tick - one picture, two ticks -
two pictures, there can be up to three ticks / pictures per cell. I can count
them and enter the number of ticks manually but this is time consuming and
liable to mistakes.

Any suggestions?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can excel give value in words of number entered in another cell? nivedrajesh Excel Worksheet Functions 4 October 27th 06 02:57 PM
How do I count the number of times a letter is used in a cell? jsrawlings Excel Discussion (Misc queries) 5 June 28th 06 02:02 AM
How to set number of characters within a cell in Excel 2003? aqmdtran Excel Worksheet Functions 2 May 4th 06 05:10 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
how to count the number of text frequencies and copy to other cell DG Excel Worksheet Functions 1 October 6th 05 07:11 PM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"