griffen5757
New Member
- Joined
- Nov 11, 2002
- Messages
- 2
I'm pretty new to this and I'm having a problem with this, any help is appreciated.
I have four workbooks PM1,PM4,PM5 and SCANDATA. If A1 in SCANDATA = 1 then I need to copy and paste D5,H5 and I5 values to PM1 B6,C6 and D6. Maybe I'm way off but this is what I've tried.
Sheets("SCANDATA").Select
If A5 = 1 Then
Range("D5,H5:I5").Select
Range("H5").Activate
Selection.Copy
Sheets("PM1").Select
Range("B6").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
End Sub
I have four workbooks PM1,PM4,PM5 and SCANDATA. If A1 in SCANDATA = 1 then I need to copy and paste D5,H5 and I5 values to PM1 B6,C6 and D6. Maybe I'm way off but this is what I've tried.
Sheets("SCANDATA").Select
If A5 = 1 Then
Range("D5,H5:I5").Select
Range("H5").Activate
Selection.Copy
Sheets("PM1").Select
Range("B6").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
End If
End Sub