Picture popup
In Excel, What will the code be to display a picture on the screen if a button is pressed?
I have a button, if pressed, needs to open a MsgBox or something displaying a picture. Thanks. |
Quote:
|
Picture popup
I put a button from the Forms Toolbar on the worksheet.
I added a picture named "Picture 1" right near that button. I assigned this macro to the button: Option Explicit Sub testme() Dim myPict As Picture Set myPict = ActiveSheet.Pictures("Picture 1") myPict.Visible = Not myPict.Visible End Sub Clicking the button toggles the visibility of the picture. TheSAguy wrote: In Excel, What will the code be to display a picture on the screen if a button is pressed? I have a button, if pressed, needs to open a MsgBox or something displaying a picture. Thanks. -- TheSAguy -- Dave Peterson |
All times are GMT +1. The time now is 02:25 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com