ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I programmatically get access to a picture or graphic? (https://www.excelbanter.com/excel-programming/345877-how-do-i-programmatically-get-access-picture-graphic.html)

Stumpiana

How do I programmatically get access to a picture or graphic?
 
When automating Excel, is there a way to programmatically get access to a
picture without knowing if the file even contains a picture? My problem is
that pictures in an Excel file grab the focus when the file is opened and
mouse-clicks anywhere on the Excel window are lost.

Vic Eldridge[_3_]

How do I programmatically get access to a picture or graphic?
 
pictures in an Excel file grab the focus when the file is opened

No they don't. Something else is causing your problem.

Regards,
Vic Eldridge



"Stumpiana" wrote:

When automating Excel, is there a way to programmatically get access to a
picture without knowing if the file even contains a picture? My problem is
that pictures in an Excel file grab the focus when the file is opened and
mouse-clicks anywhere on the Excel window are lost.


Jon Peltier[_10_]

How do I programmatically get access to a picture or graphic?
 
To counteract the problem, try this:

ActiveSheet.Range("A1").Select

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"Stumpiana" wrote in message
...
When automating Excel, is there a way to programmatically get access to a
picture without knowing if the file even contains a picture? My problem
is
that pictures in an Excel file grab the focus when the file is opened and
mouse-clicks anywhere on the Excel window are lost.





All times are GMT +1. The time now is 03:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com