Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

Checking for a picture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MM User - 27 Nov 2007 19:59 GMT
Hi,

This is a follow up from my previous mail, is it possible to check if a
picture is present on a particular cell i.e. check if graphic1 exist on Cell
A1 and also check its size?

Thanks!
Joel - 28 Nov 2007 13:29 GMT
Sub test4()
For Each pict In ActiveSheet.Shapes
  firstrow = pict.TopLeftCell.Row
  firstcolumn = pict.TopLeftCell.Column
  myheight = pict.Height 'pixiles
  mywidth = pict.Width 'pixiles
  lastrow = pict.BottomRightCell.Row
  lastcolumn = pict.BottomRightCell.Column
  totalrows = lastrow - firstrow + 1
  totalcolumns = lastcolumn - firstcolumn + 1
 
 
Next pict

End Sub

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.