Hi guys
I'm a complete newbie to macros and visualbasic, however I'm basically working on a formula that will correct a vlookup and produce a mail merge, then print the letters (from a specific tray (Tray 2 - letterhead) if that's possible. Before I've even got to that point though, I keep getting a Debug error on Line 13.
If anyone could look at the code below to see why it's flagging it up that would be really appreciated.
Sub Copy_and_Paste_Special()
'
' Copy_and_Paste_Special Macro
' Macro recorded 01/11/2010 by XXXXXX'
'
Range("B2:J100").Select
ActiveWindow.SmallScroll Down:=-81
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
For Each x In Range("E2:I70")
x.Value = Application.Proper(x.Value)
Next
For Each cell In Range("F2:I70")
If cell = "0" Then
cell.Value = ""
End If
Next
End Sub
Thanks
I'm a complete newbie to macros and visualbasic, however I'm basically working on a formula that will correct a vlookup and produce a mail merge, then print the letters (from a specific tray (Tray 2 - letterhead) if that's possible. Before I've even got to that point though, I keep getting a Debug error on Line 13.
If anyone could look at the code below to see why it's flagging it up that would be really appreciated.
Sub Copy_and_Paste_Special()
'
' Copy_and_Paste_Special Macro
' Macro recorded 01/11/2010 by XXXXXX'
'
Range("B2:J100").Select
ActiveWindow.SmallScroll Down:=-81
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
For Each x In Range("E2:I70")
x.Value = Application.Proper(x.Value)
Next
For Each cell In Range("F2:I70")
If cell = "0" Then
cell.Value = ""
End If
Next
End Sub
Thanks