Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default find and display a picture

I have a workbook with several sheets, each of which has several pictures.
Using VBA, I can activate the sheet that contains a given picture. But how
can I scroll the sheet to display that picture?




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default find and display a picture

Try this. It wil find all shapes. You may need to check name of shapes to
see if they ae pictures verses other shapes.

Sub abc()
For Each MyPicture In Worksheets("Sheet3").Shapes

Row = MyPicture.TopLeftCell.Row
Column = MyPicture.TopLeftCell.Column


Worksheets("Sheet3").Cells(Row, Column).Select

Next MyPicture

End Sub
..




"Paul Pedersen" wrote:

I have a workbook with several sheets, each of which has several pictures.
Using VBA, I can activate the sheet that contains a given picture. But how
can I scroll the sheet to display that picture?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default find and display a picture

That works nicely, thank you.


"Joel" wrote in message
...
Try this. It wil find all shapes. You may need to check name of shapes
to
see if they ae pictures verses other shapes.

Sub abc()
For Each MyPicture In Worksheets("Sheet3").Shapes

Row = MyPicture.TopLeftCell.Row
Column = MyPicture.TopLeftCell.Column


Worksheets("Sheet3").Cells(Row, Column).Select

Next MyPicture

End Sub
.




"Paul Pedersen" wrote:

I have a workbook with several sheets, each of which has several
pictures.
Using VBA, I can activate the sheet that contains a given picture. But
how
can I scroll the sheet to display that picture?







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
Macro to display a picture JB Bates[_2_] Excel Discussion (Misc queries) 1 November 3rd 09 06:33 PM
Multiple Picture display Martin Excel Discussion (Misc queries) 3 May 20th 08 03:41 PM
picture does not display in excel Van Excel Discussion (Misc queries) 0 April 24th 08 03:57 AM
How can I conditionally display one picture over another? Arnold Reedy Excel Discussion (Misc queries) 1 February 5th 06 03:05 PM
Display a picture depending on a value in a specified cell? Rakel Excel Programming 1 June 18th 04 07:38 PM


All times are GMT +1. The time now is 01:22 PM.

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"