I’m working on a VBA but I’m stuck. I was wondering if you may be able to help.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I’m trying to do a scan program that will take me to the next row and start over after the final scan on the first row.<o></o>
<o> </o>
Here is my code<o></o>
<o> </o>
I’m trying to do a scan program that will take me to the next row and start over after the final scan on the first row.<o></o>
<o> </o>
Here is my code<o></o>
<o> </o>
Code:
Private Sub Worksheet_Change(ByVal Target As Range)<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a]<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>[/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]If Target.Address = "$X$1" Then<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] Range("A2").Select<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] Application.SendKeys "{Enter}"<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a]<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>[/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]End If<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]If Target.Address = "$A$2" Then<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] Range("B2").Select<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] <o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]End If<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]If Target.Address = "$B$2" Then<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] Range("D2").Select<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] <o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri] <o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]End If<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]End Sub [END CODE]<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a]<o:p>[FONT=Calibri][SIZE=3] [/SIZE][/FONT]</o:p>[/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]I would need this program to switch fields automatically after the scan and start over on row A3.<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]Any help is well appreciated.<o:p></o:p>[/FONT][/SIZE][/COLOR]
[COLOR=#4a442a][SIZE=3][FONT=Calibri]Thanks<o:p></o:p>[/FONT][/SIZE][/COLOR]