PC Review


Reply
Thread Tools Rate Thread

Auto Detect Data, Auto Print Data, Auto Erase Data Loop

 
 
Gamma's and Ruiter's
Guest
Posts: n/a
 
      12th Sep 2011
I have a barcode scanner hooked up to excel. It decodes the encoded
text in the barcode it scans. The barcodes scanned may have up to
40-50 lines and 600 + characters of data. It will all stay in column A
and could populate all the way down to line 40-60. I'm trying to write
a macro for this with not too much luck.

When the information is scanned, the macro needs to start at A1 sense
how many cells were populated with data, maybe it fill A1 - A12 or
maybe A1-A60, it needs to auto prints those cells, then erases the
information that was scanned in and awaits the next scan, and does it
all over again until i stop it. It only prints once when it receives
new data.

Example: Basically its an autoprint as if you were to do a price check
in a store. you put the item under a scanner and the screen shows you
the price when its scanned, how ever instead of the screen output i
want it to print to a printer.


 
Reply With Quote
 
 
 
 
Gamma's and Ruiter's
Guest
Posts: n/a
 
      12th Sep 2011
Office Mac 2011
 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      12th Sep 2011
this works but if i have a scan come in thats say 11 lines long it
prints 1 line then it prints the next. doesn't wait for the whole scan
to come in to print it.
also it doesn't go back to a1 with the blinking cursor to await the
next input.

close though..
any ideas?

cv
 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      12th Sep 2011
my version does support VBA
 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      13th Sep 2011
Apologies Ron,

1. Its read in line by line.
2. Your right about the blinking cursor. It just blinks when I double
click the cell. Forget that. I just want to go back to A1 as you
showed me how in the previous message.

cv

 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      13th Sep 2011
On Sep 12, 8:22*pm, Ron Rosenfeld <r...@nospam.net> wrote:
> On Mon, 12 Sep 2011 17:13:44 -0700 (PDT), GammaRuit <vitale.ch...@gmail.com> wrote:
> >1. Its read in line by line.

>
> How do you know when the last line has been read in?


Every scan is a different amount of data.

It constantly populates line after line. When its done it stops. There
is nothing in the decoded text to indicate that its finished.

I can program my barcode generator to print out something specific as
the very last line of the decode. Maybe END or COMPLETE or THANK YOU

 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      13th Sep 2011
On Sep 12, 8:49*pm, Ron Rosenfeld <r...@nospam.net> wrote:
> On Mon, 12 Sep 2011 17:38:46 -0700 (PDT), GammaRuit <vitale.ch...@gmail.com> wrote:
> >I can program my barcode generator to print out something specific as
> >the very last line of the decode. Maybe END or COMPLETE or THANK YOU

>
> How do you get the information into Excel?
>
> I'm thinking you could just run a test after each line, and print out therange after you read or Last Line code; adapting from what I've already written.



I click A1

I take my scanner scan a QR Code. say my QR is encoded with:

Hi
How
Are
You


It prints it out line by line as it you were typing really fast.

A1 Hi
A2 How
A3 Are
A4 You
 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      13th Sep 2011
Works Ron ! Thank You

Do I need to Define A Header and Footer within the Macro?
I tried to apply it in the layout and it won't work.

What would be a better description of the interface be? The type of
Scanner?
Would you like to see a video of how it works so you can understand
the process?

Chris

 
Reply With Quote
 
GammaRuit
Guest
Posts: n/a
 
      14th Sep 2011
I wasn't seeing the header and footer because i didn't input the data
on the left header.
I'm using a receipt printer right now so it was off the page.

So i put the header and footer on the left and it prints. but it moves
into where my data is printing as well.
it is overlapping slightly. i would assume i just have to play with
formatting? nothing to do with macro code right?

cv
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto show data but without using Auto Filter LP Microsoft Excel Misc 1 8th Apr 2009 12:06 AM
how to auto-print if data is on report after each sort? =?Utf-8?B?U3RldmU=?= Microsoft Excel Programming 0 29th Oct 2007 03:33 PM
Copy and paste data from Auto Filter / Subtotal (or apply a formula to filtered data) Harry Flashman Microsoft Excel Discussion 7 9th Oct 2007 04:39 PM
How can I auto-refresh auto-filters when data changes? =?Utf-8?B?TWlrZUBNUFdjbw==?= Microsoft Excel Worksheet Functions 0 4th Jul 2006 12:50 PM
The data in text column is wrong, but auto filter data is correct =?Utf-8?B?anVkeWFycm95bw==?= Microsoft Access 1 28th Jun 2006 08:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.