Hi, I have some code as seen below that I would like to be run part way through the code of another macro. How do you do this? Thanks in advance 

Code:
Public Function CheckSheet( _ByVal SheetName As String _
) As Boolean
For Each TargetSheet In wbTarget.Sheets
If UCase(TargetSheet.Name) = UCase(Quote) Then
doessheetexist = True
GoTo linemarker1
Exit For
End If
Next TargetSheet
If doessheetexist = False Then GoTo linemarker2
End Function