I hope somebody is able to help with this VBA Code. When I try to run the macro it goes a far as where I have the word formula highlighted in red. This is where I run into a COMPILE ERROR: Invalid use of property. Any help is appreciated.
Rich (BB code):
Sub Monthly_NOs_Update()
'
' Monthly_NOs_Update Macro
' Column F-ColumnD Column G-ColumnC
'
' Keyboard Shortcut: Ctrl+m
If Target.Column = 1 Then
If Target.Value = "Yes" Then
With Target
.Font.Name = "Webdings"
.Value = "a"
End With
End If
If Target.Value = "No" Then
With Target
.Font.Name = "Calibri"
.Value = "x"
End With
End If
End If
Columns("C:G").Select
Selection.Copy
Range("j9:n9").Select
ActiveSheet.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("f9").Select
ActiveCell.Formula "f9" = "=IF(OR(K9=0,m9=0,m9=""misc.""),m9,m9-k9)"
Range("G9").Select
ActiveCell.Formula "g9" = "=IF(OR(j9=0,n9=0),n9,n9-j9)"
Range("F9:f17").Select
Selection.Copy
Range("F19:F23").Select
ActiveSheet.Paste
Range("F25:F30").Select
ActiveSheet.Paste
Range("F32:F36").Select
ActiveSheet.Paste
Range("F37:F39").Select
ActiveSheet.Paste
Range("F40:F42").Select
ActiveSheet.Paste
Range("F43:F45").Select
ActiveSheet.Paste
Range("F46:F48").Select
ActiveSheet.Paste
Range("f49:f51").Select
ActiveSheet.Paste
Range("f53:f64").Select
ActiveSheet.Paste
Columns("F:G").Select
Range("j10:n10").Select
Selection.Copy
Columns ("f:G")
ActiveSheet.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Columns("j:n").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlToLeft
End Sub