J
Jim A
Hi,
I am new to VBA. I was given this to try(probably from this forum):
Private Sub Worksheet_Change(ByVal Target As Range)
Set r1 = Range("T2")
Set r2 = Range("AR5:AR47")
If Intersect(Target, r1) Is Nothing Then Exit Sub
dsheet = "sheet2"
Application.EnableEvents = False
r2.Copy Sheets(dsheet).Range("R7:R49")
Application.EnableEvents = True
End Sub
QUESTIONS-
1. This copies the formulas of AR5:AR47 How do I get it to copy the values
and NOT the formulas?
2. Why do I need "dsheet"?
3. Is there an easy way to copy AR5:AR47 to different colums on the same
sheet if T2, U2, V2, or W2 has a value in them one at a time?
Thanks for any help - Jim A
I am new to VBA. I was given this to try(probably from this forum):
Private Sub Worksheet_Change(ByVal Target As Range)
Set r1 = Range("T2")
Set r2 = Range("AR5:AR47")
If Intersect(Target, r1) Is Nothing Then Exit Sub
dsheet = "sheet2"
Application.EnableEvents = False
r2.Copy Sheets(dsheet).Range("R7:R49")
Application.EnableEvents = True
End Sub
QUESTIONS-
1. This copies the formulas of AR5:AR47 How do I get it to copy the values
and NOT the formulas?
2. Why do I need "dsheet"?
3. Is there an easy way to copy AR5:AR47 to different colums on the same
sheet if T2, U2, V2, or W2 has a value in them one at a time?
Thanks for any help - Jim A