Show UserForm InkPicture in Sheet

nickwoowoo

New Member
Joined
Nov 22, 2013
Messages
2
Hi,

I've been trawling forums for two days now for an answer to this, but with no luck.

All I want is the ability for a user to draw within a UserForm, and then what he/she draws to be displayed within a worksheet.

InkPicture would seem the correct control to be using, but I can't find a way for it to then be displayed in a worksheet.

My simplest attempt was:

Private Sub CommandButton1_Click()
Sheet1.InkPicture1.Picture = InkPicture1.Picture
End Sub

Which resulted in no errors, but didn't do anything.

Does anyone have an answer?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Welcome to MrExcel! Hope this helps...

try:

Code:
Private Sub SaveInkToActivesheet()
  Me.InkPicture1.Ink.ClipboardCopy , ICF_Bitmap
  ActiveSheet.Paste
End Sub
 
Upvote 0
Thanks tlowry,

I did find a way in the end. Meant to post it here sooner.

Code:
With Sheet1.InkPicture1
      .InkEnabled = False
      Set .Ink = Me.InkPicture1.Ink
      .InkEnabled = True
   End With
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,266
Members
449,093
Latest member
Vincent Khandagale

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