Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Testing for Screenshot

Hi

I want to test for a simple two-part condition:

I want to detect when there is a blank sheet with a screenshot pasted into
it. I can do the first part but how do I detect the second, please?

Thanks

Tim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Testing for Screenshot

I doubt if you can test if it is specifically a screen shot. You can test
if it is a picture

? activesheet.pictures.count

I did a paste picture as link (which is what I assume you want to test for)
With the result selected

? typename(selection)
Picture

I verified it was a linked picture as it updated when I changed a cell
linked to the picture. Even so:

? activesheet.shapes(1).Type = msoLinkedPicture
False
? activesheet.shapes(1).type = msoPicture
True

this was in xl97 - looks like a bug or there is another type of linked
picture.

If the picture is linked to another workbook there was no change, except
there is a link shown in Edit=Links.

Maybe someone else has a better way.

--
Regards,
Tom Ogilvy


Tim Childs wrote in message
...
Hi

I want to test for a simple two-part condition:

I want to detect when there is a blank sheet with a screenshot pasted into
it. I can do the first part but how do I detect the second, please?

Thanks

Tim




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
Testing Rick Rothstein Excel Discussion (Misc queries) 13 December 29th 09 10:45 PM
TESTING Eamon Excel Worksheet Functions 0 July 11th 08 03:41 PM
Pasting Screenshot in shared workbook Karthik Excel Discussion (Misc queries) 4 April 6th 07 03:26 PM
Testing Richard Wrigley Excel Discussion (Misc queries) 0 November 1st 06 09:45 PM
Automatic screenshot in Excel Jan K. Excel Programming 10 August 16th 03 03:34 PM


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