Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JEB JEB is offline
external usenet poster
 
Posts: 40
Default Visual Basic: Setting up a button to switch on/off a picture

Please help me create an a control button that will allow me to turn on/ off
a picture that I have inserted into an excel document. I had added a
signature that will serve as a digital signature but the document but I would
like to be able to control turning the signature on and off.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Visual Basic: Setting up a button to switch on/off a picture

Here is a little macro to do that

Sub myPic
With ActiveSheet.Shapes("Picture 1")
.Visible = Not .Visible
End With
End Sub

Add a button from the forms toolbar to the worksheet, and assign that macro
to it.

--
HTH

Bob Phillips

"jeb" wrote in message
...
Please help me create an a control button that will allow me to turn on/

off
a picture that I have inserted into an excel document. I had added a
signature that will serve as a digital signature but the document but I

would
like to be able to control turning the signature on and off.



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
Are there any NON-Visual Basic solutions for inserting a picture based a derived or called filename? The Great Attractor Excel Worksheet Functions 7 May 27th 07 04:38 AM
Invoking a Visual Basic macro from a Custom Toolbar Button [email protected] Excel Worksheet Functions 2 March 1st 07 10:48 AM
Create and Use Button Menu using visual Basic in Excel Walter L. skinner Excel Discussion (Misc queries) 3 November 17th 05 11:40 AM
how to access a value from excel option button using visual basic? henry Excel Programming 2 February 28th 05 12:32 PM
Picture scaling in Visual Basic Kamyk Excel Programming 0 July 28th 04 04:35 PM


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