Please Help. Im working on an excel sheet for work that copies our progress notes to certain cells depending on conditions. for some reason if i put jus one if statement in it works one at a time, put thema all together and it doesnt work, just sits there. Ive read several forums and it seems like i got it right but when i click the button for it, nothing happens. Like I said if i put just one if else then it works, all lines nothing. Here is the Code.
Sub CopyDown()
'
' CopyDown Macro
'
'
If B3 = "(RECEIPT)" Then
Range("C4:G4").Select
Selection.Copy
Range("D6:H6").Select
ActiveSheet.Paste
ElseIf B3 = "(ISSUE)" Then
Range("C4:G4").Select
Selection.Copy
Range("D7:H7").Select
ActiveSheet.Paste
ElseIf B3 = "(ROOT CAUSE)" Then
Range("C4:G4").Select
Selection.Copy
Range("D8:H8").Select
ActiveSheet.Paste
ElseIf B3 = "(RESOLUTION)" Then
Range("C4:G4").Select
Selection.Copy
Range("D9:H9").Select
ActiveSheet.Paste
ElseIf B3 = "(Follow up)" Then
Range("C4:G4").Select
Selection.Copy
Range("D10:H10").Select
ActiveSheet.Paste
ElseIf B3 = "(Duplicate)" Then
Range("C4:G4").Select
Selection.Copy
Range("D11:H11").Select
ActiveSheet.Paste
ElseIf B3 = "(Misroute)" Then
Range("C4:G4").Select
Selection.Copy
Range("D12:H12").Select
ActiveSheet.Paste
ElseIf B3 = "(Action required)" Then
Range("C4:G4").Select
Selection.Copy
Range("D13:H13").Select
ActiveSheet.Paste
ElseIf B3 = "(Action taken)" Then
Range("C4:G4").Select
Selection.Copy
Range("D14:H14").Select
ActiveSheet.Paste
Else: MsgBox "Please Enter Free Text"
End If
End Sub
Sub CopyDown()
'
' CopyDown Macro
'
'
If B3 = "(RECEIPT)" Then
Range("C4:G4").Select
Selection.Copy
Range("D6:H6").Select
ActiveSheet.Paste
ElseIf B3 = "(ISSUE)" Then
Range("C4:G4").Select
Selection.Copy
Range("D7:H7").Select
ActiveSheet.Paste
ElseIf B3 = "(ROOT CAUSE)" Then
Range("C4:G4").Select
Selection.Copy
Range("D8:H8").Select
ActiveSheet.Paste
ElseIf B3 = "(RESOLUTION)" Then
Range("C4:G4").Select
Selection.Copy
Range("D9:H9").Select
ActiveSheet.Paste
ElseIf B3 = "(Follow up)" Then
Range("C4:G4").Select
Selection.Copy
Range("D10:H10").Select
ActiveSheet.Paste
ElseIf B3 = "(Duplicate)" Then
Range("C4:G4").Select
Selection.Copy
Range("D11:H11").Select
ActiveSheet.Paste
ElseIf B3 = "(Misroute)" Then
Range("C4:G4").Select
Selection.Copy
Range("D12:H12").Select
ActiveSheet.Paste
ElseIf B3 = "(Action required)" Then
Range("C4:G4").Select
Selection.Copy
Range("D13:H13").Select
ActiveSheet.Paste
ElseIf B3 = "(Action taken)" Then
Range("C4:G4").Select
Selection.Copy
Range("D14:H14").Select
ActiveSheet.Paste
Else: MsgBox "Please Enter Free Text"
End If
End Sub