DIY Digital Signature

MarkOW

New Member
Joined
Jun 26, 2018
Messages
35
Hi, I am trying to create a DIY digital signature block on that inserts the signers details on a worksheet. this is what I have so far.
The commandbutton is on a userform along with a couple of comboboxes.
Code:
Private Sub CommandButton1_Click()




Dim myCell As Range
Dim myTextBox As textbox


Set myCell = ActiveCell


With myCell
Set myTextBox = .Parent.TextBoxes.Add(Top:=.Top, Left:=.Left, _
Width:=130, Height:=50)
End With


With myTextBox
.Caption = ComboBox1.Value & Chr(10) & ComboBox2.Value & Chr(10) & Now()




        With ActiveSheet.Shapes("Text Box 24").Fill
        .Visible = True
        .UserPicture "C:\Users\Desktop\Image1.jpg"
    End With


End With




End Sub

First part works as I wanted with name, reason for signing & date entering into textbox.
I would like to add an image of the signature to the right of this text but am having difficulty doing this.
Can anyone offer help or suggest an alternative

Thanks in advance
Mark
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top