I'm new to InkPicture but I like to use it for user to put signature into the form.
I can't seem to save the signature (inkpicture) to the spreadsheet it just inputs it as 0 into the cell I specify.
With UserForm1.InkPicture1.Picture = InkPicture1.Picture
End With
lrDep = Sheets("Deploy").Range("A" & Rows.Count).End(xlUp).Row
Sheets("Deploy").Cells(lrDep + 1, "A").Value = TBox1.Text
Sheets("Deploy").Cells(lrDep + 1, "B").Value = TBox2.Text
Sheets("Deploy").Cells(lrDep + 1, "C").Value = TBox3.Text
Sheets("Deploy").Cells(lrDep + 1, "D").Value = TBox4.Text
Sheets("Deploy").Cells(lrDep + 1, "G").Value = InkPicture1.Ink
Could someone please help me. Thank you.
I when through something similar some time ago.
You can see my question here.
The below code will allow you to, open the userform so the user can sign the ink field, save the image temperately, add the InkPicture to your worksheet and kill the temp image.
Set up your UserForm (mine is set up like this, with a couple extra options) the UserForm is named
Signature_pad
, the essential option you need isPrivate Sub Use_Click()
.This is the code inside the Userform:
Below is the
Main sub
(Module calledSignature
) to call the userform and handle the signature, you can call thisSub
with abutton
or form anotherSub
.Be sure to rename either the
Userform Name
andButtons Name
Or the code to match the names of youbuttons
.