DIY Digital Signature


New Member
Jun 26, 2018
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.
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

Some videos you may like

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Latest member

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...