ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,699
- Office Version
- 2007
- Platform
- Windows
I would like to use a jpg image on my worksheet as i dont see any option in the insert Active x control box.
I have placed the images on my worksheet,copied the code from an existing active x control then assigned it etc to my image,saved.
I was assuming that when i press this image the code would run but nothing.
The same code works fine on the source it was copied from.
Is this possible or did i do something wrong ?
I have placed the images on my worksheet,copied the code from an existing active x control then assigned it etc to my image,saved.
I was assuming that when i press this image the code would run but nothing.
The same code works fine on the source it was copied from.
Is this possible or did i do something wrong ?
Code:
Private Sub CommandButton1_Click()
UserForm1.Show
End Sub
Private Sub CommandButton2_Click()
Rows("6:6").Select
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Range("M6").Formula = "=TODAY()"
Range("A6").Select
End Sub
Private Sub Worksheet_Activate()
UserForm1.Show
Range("A6").Select
End Sub