![]() |
#4
|
||||
|
||||
![]()
On further reflection, you can use the same label e.g.
Code:
Private Sub UserForm_Initialize() Label1.Picture = LoadPicture("D:\My Pictures\Image_1.bmp") Label1.Caption = "Image1" Label1.ForeColor = Label1.BackColor End Sub Private Sub CommandButton1_Click() If Label1.Caption = "Image1" Then Label1.Picture = LoadPicture("D:\My Pictures\Image_2.bmp") Label1.Caption = "Image2" Else Label1.Picture = LoadPicture("D:\My Pictures\Image_1.bmp") Label1.Caption = "Image1" End If End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Sanwitte | Word | 3 | 03-20-2018 02:55 AM |
![]() |
menander | Word VBA | 6 | 03-05-2017 01:58 PM |
activating a video after clicking on image | jansmits | PowerPoint | 0 | 10-24-2013 10:17 AM |
Clicking a picture to go to MSpaint? | SharpTJ | Word | 0 | 03-13-2013 06:50 PM |
Change object properties by clicking | PopOnTheAir | PowerPoint | 7 | 03-16-2012 02:13 PM |