I have the following code which works well, but I want to delete the notes on only sheet 2 rather than each sheet.
SyntaxEditor Code Snippet
Dim invApp As Inventor.Application
invApp = ThisApplication
Dim oDrawDoc As Document
oDrawDoc = invApp.ActiveEditDocument
For Each oSheet In oDrawDoc.Sheets
For Each oGeneralNote In oSheet.DrawingNotes.GeneralNotes
oGeneralNote.Delete
Next
For Each oLeaderNote In oSheet.DrawingNotes.LeaderNotes
oLeaderNote.Delete
Next
Next