G
Guest
here's a part of the code i have for Sheet 1. In the
middle i want to go to the next sheet, do some things
there and come back to sheet 1. This code loops itself
back to the beginning from the step just before the go to
sheet 2 [Sheets("Parts List").Select]. can anyone help me
figuring out what am i missing here? thanks
I made a macro only with the Else statement and that works
fine.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Then
Exit Sub
Else
Columns("F:F").Select
Selection.Copy
Columns("A:A").Select
Selection.PasteSpecial Paste:=xlPasteAll,
Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False
Sheets("Parts List").Select
Columns("B:B").Select
Selection.PasteSpecial Paste:=xlPasteAll,
Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False
Range("A1:C1").Font.Bold = True
Range("A1").Select
middle i want to go to the next sheet, do some things
there and come back to sheet 1. This code loops itself
back to the beginning from the step just before the go to
sheet 2 [Sheets("Parts List").Select]. can anyone help me
figuring out what am i missing here? thanks
I made a macro only with the Else statement and that works
fine.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Then
Exit Sub
Else
Columns("F:F").Select
Selection.Copy
Columns("A:A").Select
Selection.PasteSpecial Paste:=xlPasteAll,
Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False
Sheets("Parts List").Select
Columns("B:B").Select
Selection.PasteSpecial Paste:=xlPasteAll,
Operation:=xlAdd, SkipBlanks:= _
False, Transpose:=False
Range("A1:C1").Font.Bold = True
Range("A1").Select