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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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