Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
caj caj is offline
external usenet poster
 
Posts: 23
Default Help with togglebutton that displays jpg

I have a jpg that when you click the toggle button it appears and when you
click it again it goes away. Can this be done in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Help with togglebutton that displays jpg

Put a Picture and a Toggle Button on your worksheet. Then, right-click the
sheet tab, choose "View Code" and paste the following code in that module:

Private Sub ToggleButton1_Click()
Me.Pictures("Picture1").Visible = Me.ToggleButton1.Value
End Sub

Change "Picture1" to the name assigned to the picture object.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"caj" wrote in message
...
I have a jpg that when you click the toggle button it appears and when you
click it again it goes away. Can this be done in Excel?



  #3   Report Post  
Posted to microsoft.public.excel.misc
caj caj is offline
external usenet poster
 
Posts: 23
Default Help with togglebutton that displays jpg

Thank You. Thank you. That worked GREAT! Thanks again.

"Chip Pearson" wrote:

Put a Picture and a Toggle Button on your worksheet. Then, right-click the
sheet tab, choose "View Code" and paste the following code in that module:

Private Sub ToggleButton1_Click()
Me.Pictures("Picture1").Visible = Me.ToggleButton1.Value
End Sub

Change "Picture1" to the name assigned to the picture object.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"caj" wrote in message
...
I have a jpg that when you click the toggle button it appears and when you
click it again it goes away. Can this be done in Excel?




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
How do I get 00 or 01 from XML to Excel it displays as 0 or 1? Ross Excel Discussion (Misc queries) 1 October 6th 06 09:09 AM
Number displays TD8953 New Users to Excel 2 May 10th 05 04:05 PM
Month always displays as Jan Vinaya Excel Worksheet Functions 2 March 24th 05 02:53 PM
Difference From displays #N/A STEVE Excel Discussion (Misc queries) 0 March 1st 05 08:15 PM
Formula window displays correct answer while cell displays incorre MMV Excel Worksheet Functions 3 November 10th 04 09:28 PM


All times are GMT +1. The time now is 12:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"