Userform with a scan document function

chichaspowa

New Member
Joined
Sep 6, 2010
Messages
46
Hi everyone,

I wanna have a userform with 2 buttons and a textbox one of the buttons would prompt the user to insert document in scanner and by clicking go would scan the document and automatically save under the value thats in the textbox in jpg.

then the other button would open the file that was saved.

I think i would have to use a cmdtwain or something in order to do this.

Would it be possible if someone could help me?

Thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
hi andrew,

i inserted that module into excel, and created a button with the following code
Code:
Private Sub CommandButton11_Click()
Dim lRtn As Long
lRtn = mdlTwain.TransferWithoutUI(200, GREY, 0, 0, 0, 0, _
 ChequeBox.Value & ".bmp")

End Sub

the document wont scan and excel justs blocks.. can u help me out on this please, im struggling here for the past 24 hours.

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

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