Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Macro for automatically moving to next column or row

I am using a handheld scanner that reads inventory data and inputs it in to a
spreadsheet. There are 3 data items per row. I am looking for a macro that
will automatically tab over to the next cell to await new input, and also to
move to the home position in a new row after the 3rd data item is scanned.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Macro for automatically moving to next column or row

TaxMan
This little macro will do that. Place it in the sheet module of your
sheet. To access that module, right-click on the sheet tab and click on
View Code. "X" out of the module to return to your sheet. I assumed your 3
columns are A, B, C. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If IsEmpty(Target.Value) Then Exit Sub
If Target.Column < 3 Then _
Target.Offset(, 1).Select
If Target.Column = 3 Then _
Target.Offset(1, -2).Select
End Sub
"TaxMan" wrote in message
...
I am using a handheld scanner that reads inventory data and inputs it in to
a
spreadsheet. There are 3 data items per row. I am looking for a macro
that
will automatically tab over to the next cell to await new input, and also
to
move to the home position in a new row after the 3rd data item is scanned.



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
Ron DeBruin Macro - Moving Sheet Name from Last Column to Column A ScottMSP Excel Worksheet Functions 7 December 12th 08 06:07 PM
Moving to Column A using a macro Victor Delta[_2_] Excel Discussion (Misc queries) 2 July 27th 08 11:39 AM
macro to automatically sum a column based on another childofthe1980s Excel Programming 2 March 17th 08 03:30 PM
Macro to change the column references automatically [email protected] Excel Programming 2 October 30th 07 08:26 PM
moving the formula "average" over one column in a macro drumstu Excel Worksheet Functions 1 August 23rd 05 08:01 PM


All times are GMT +1. The time now is 10:13 PM.

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"