Hopefully a SIMPLE macro

brettd03

New Member
Joined
Apr 13, 2011
Messages
22
I've had succes with responses here in the past, so I thought Id give it another shot!

I have a 3 column spreadsheet. I will be scanning barcode information (for example) into A1 then B1 then C1. After that, drop down to A2, scan, B2, C2, drop to A3 etc.

I have the Symbol scanner programmed to send "tab" after each scan right now. So, the left to right is working fine. My only dilemma is sending an "enter" to drop to the next row after 3 scans.

I dont believe I can set the scanner for 2 arguments, so my best guess was a macro?

Any ideas?

manifest.jpg
 
Last edited:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
  • Unhide column D
  • You can reduce column D's width down to 1 pixel if you want, but it has to be unhidden for this to work.
  • Right-click on the sheet tab and select View Code from the pop-up menu
  • Paste the code below in the VBA edit window

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Column = 4 And Target.Row < Rows.Count Then
        Application.EnableEvents = False
        Range("A" & Target.Row + 1).Select
        Application.EnableEvents = True
    End If
End Sub

You would Tab to the D cell after scanning in the value in column C. The code basically automatically selects the next cell in column A when you select any cell in column D.
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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