Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default multiple objects in single cell

Once upon a time (back in may), I started to find an answer to this
question but never really followed up on solving it.

I have a code that will name images based on their locations in a
spreadsheet, which works great until I have a situation where mulitple
images (objects) have ended up in the same cell. Someone helped me
create a code that would identify where an object lives and spits it
out into a new sheet, thus allowing me to do a conditional format and
find duplicate cell references. This works great if the two objects
are stacked perfectly on top of one another, but doesn't work if they
are beside or above each other.

Can anyone help me tweek this to find those too?


Sub FindImages()
Dim Shp As Shape
dim CurWks as worksheet
dim RptWks as worksheet
dim oRow as long


set curwks = activesheet
set rptwks = worksheets.add
orow = 1


For Each Shp In curwks.Shapes
rptwks.cells(orow,"A").value = shp.name
rptwks.cells(orow,"B").value = shp.topleftcell.address(0,0)
'rptwks.cells(orow,"C").value = shp.bottomrightcell.address(0,0)
orow = orow + 1
Next Shp
End Sub

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
Multiple formats in a single cell with multiple formulas Zakhary Excel Worksheet Functions 1 May 2nd 08 12:08 AM
multiple objects in single cell alenhart[_2_] Excel Programming 1 May 15th 06 09:02 PM
Multiple lines in single cell gti_jobert[_14_] Excel Programming 5 February 9th 06 12:53 PM
Single or Multiple Cell Selection PosseJohn Excel Programming 2 November 27th 05 06:17 PM
Using a single cell in multiple formulas ebethcat Excel Worksheet Functions 1 May 26th 05 02:42 PM


All times are GMT +1. The time now is 03:15 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"