Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default scanner twain

Hi all,
my problem is acquire an image from a twain device when the user click
on a button located on a sheet. Is there a way to do it, possibly
without installing activex ?

Thank you.
Bye
Theta
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default scanner twain

You have to add a form to your worksheet and the write a macro that does the
function

I would start by going to fromat menu and selecting learn macro. then
manually get the data from the twain device. Then stop record the macro.

then test the macro and see if it works.


the next step is to add a button that automatically calls the macro.

1) go to view window - toolbars and select form Menu.
2) Select the control button and add it to your worksheet
3) right click the conjtrol button and select the macro you want to run
4) right click on the button and select edit text to change the text on the
button.





"Theta" wrote:

Hi all,
my problem is acquire an image from a twain device when the user click
on a button located on a sheet. Is there a way to do it, possibly
without installing activex ?

Thank you.
Bye
Theta

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default scanner twain

This brings up the dialog for the user to select from.

Const FromScannerorCamera As Long = 1764
Application.CommandBars.FindControl(, FromScannerorCamera).Execute

Not sure what you mean by "without installing activex", but if the button is
from the Controls Toolbox, make sure you set its .TakeFocusOnClick property
to False.

NickHK

"Theta" wrote in message
. ..
Hi all,
my problem is acquire an image from a twain device when the user click
on a button located on a sheet. Is there a way to do it, possibly
without installing activex ?

Thank you.
Bye
Theta



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas, names - and never the twain shall meet? Kiran Excel Discussion (Misc queries) 3 March 26th 09 08:31 AM
bar code scanner Lyn11vw Excel Discussion (Misc queries) 1 September 13th 08 06:28 AM
Scanner to Excel agrin Excel Discussion (Misc queries) 5 December 27th 07 04:41 AM
barcode scanner metallicadad38 Excel Discussion (Misc queries) 0 June 28th 06 08:34 PM
USB Bar Code Scanner steve Excel Discussion (Misc queries) 0 March 3rd 06 04:23 PM


All times are GMT +1. The time now is 11:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"