Change View Labels using API

Hi,

I need to change the label below every view in my drawing to display custom text. Is there a way to get a handle to these labels and set the text in them programatically?

When I record a macro, the ID of the NOTE selected is DetailItem#@ ..How do I know what the detialItem# value is for the label for a view?

Thanks,

Hersh

SolidworksApi macros