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

What I want to do is this: Have a userform with a textbox
which will receive information via a scan of a barcode. I
want to have this info sent to a spreadsheet, the textbox
cleared and ready for the next scan. The problem I'm
having is this...I don't want the user to have to do
anything but scan. Ideally, the user should be able to
scan, wait for a 'ding' (a good, clean scan), scan the
next barcode, etc. Ultimately, a list of barcodes will
printout. Any help would be greatly appreciated.

Thanks!
Michael Carroll
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Textbox & Barcode Scanning

Use the exit event of the textbox to write the value, clear the textbox,
cancel the departure.

I assume your barcode reader sends a Return at the end of the code.

--
Regards,
Tom Ogilvy


"Michael Carroll" wrote in message
...
What I want to do is this: Have a userform with a textbox
which will receive information via a scan of a barcode. I
want to have this info sent to a spreadsheet, the textbox
cleared and ready for the next scan. The problem I'm
having is this...I don't want the user to have to do
anything but scan. Ideally, the user should be able to
scan, wait for a 'ding' (a good, clean scan), scan the
next barcode, etc. Ultimately, a list of barcodes will
printout. Any help would be greatly appreciated.

Thanks!
Michael Carroll



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Textbox & Barcode Scanning

Actually, I think that's part of my problem. Not sure how
or what to use as a "return". I'm not sure how to tell
the userform/textbox that the scan is done. We are using
Code 3 of 9 (with *'s on both ends of the barcode).

-----Original Message-----
Use the exit event of the textbox to write the value,

clear the textbox,
cancel the departure.

I assume your barcode reader sends a Return at the end of

the code.

--
Regards,
Tom Ogilvy


"Michael Carroll"

wrote in message
...
What I want to do is this: Have a userform with a

textbox
which will receive information via a scan of a

barcode. I
want to have this info sent to a spreadsheet, the

textbox
cleared and ready for the next scan. The problem I'm
having is this...I don't want the user to have to do
anything but scan. Ideally, the user should be able to
scan, wait for a 'ding' (a good, clean scan), scan the
next barcode, etc. Ultimately, a list of barcodes will
printout. Any help would be greatly appreciated.

Thanks!
Michael Carroll



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Textbox & Barcode Scanning

I believe most barcode readers can be set to emulate keystokes so when it
scans a 9, it sends a keystroke as if a 9 were entered from the keypad. In
this mode, it usually sends a return at the end of the scan although perhaps
this is configurable.

--
Regards,
Tom Ogilvy

"Michael" wrote in message
...
Actually, I think that's part of my problem. Not sure how
or what to use as a "return". I'm not sure how to tell
the userform/textbox that the scan is done. We are using
Code 3 of 9 (with *'s on both ends of the barcode).

-----Original Message-----
Use the exit event of the textbox to write the value,

clear the textbox,
cancel the departure.

I assume your barcode reader sends a Return at the end of

the code.

--
Regards,
Tom Ogilvy


"Michael Carroll"

wrote in message
...
What I want to do is this: Have a userform with a

textbox
which will receive information via a scan of a

barcode. I
want to have this info sent to a spreadsheet, the

textbox
cleared and ready for the next scan. The problem I'm
having is this...I don't want the user to have to do
anything but scan. Ideally, the user should be able to
scan, wait for a 'ding' (a good, clean scan), scan the
next barcode, etc. Ultimately, a list of barcodes will
printout. Any help would be greatly appreciated.

Thanks!
Michael Carroll



.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Textbox & Barcode Scanning

All you need is a bar code scanner that has a keyboard wedge
interface.
You can program all bar code scanners that have a keyboard wedge
interface to issue an "enter" keystroke after every bar code that you
scan. (This is the default behavior of most scanners.)
You could then use code in your userform that will respond to the
"enter" key and write the data from the textbox to the bottom of a
column and then clear out the textbox and wait for the next scan.

You could use code like the following in your userform:

Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer)
If KeyCode = 13 Then
KeyCode = 0
R = Sheets(1).Cells(65000, 1).End(xlUp).Row
If Len(Sheets(1).Cells(R, 1).Text) Then R = R + 1
Sheets(1).Cells(R, 1).Value = TextBox1.Text
TextBox1.Text = ""
End If

End Sub

If you need a good bar code scanner that has a keyboard wedge
interface at a very good price, please visit:
http://www.taltech.com/products/bc_reader.html


On Tue, 24 Feb 2004 07:00:48 -0800, "Michael Carroll"
wrote:

What I want to do is this: Have a userform with a textbox
which will receive information via a scan of a barcode. I
want to have this info sent to a spreadsheet, the textbox
cleared and ready for the next scan. The problem I'm
having is this...I don't want the user to have to do
anything but scan. Ideally, the user should be able to
scan, wait for a 'ding' (a good, clean scan), scan the
next barcode, etc. Ultimately, a list of barcodes will
printout. Any help would be greatly appreciated.

Thanks!
Michael Carroll


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
Scanning Old Keith Excel Worksheet Functions 2 October 2nd 07 12:47 AM
Scanning a barcode BAKERSMAN Excel Discussion (Misc queries) 2 July 24th 07 06:32 PM
does excel support barcode scanning? Jase Excel Discussion (Misc queries) 8 December 7th 05 10:50 AM
After scanning a barcode how can I automatically move to the next. tbledsoe Excel Discussion (Misc queries) 1 December 4th 04 08:18 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 11:44 PM.

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

About Us

"It's about Microsoft Excel"