This code creates an empty annotation. You must also the text.
What documentation leads you to conclude that (a) you need to pass AP (b) you pass a value of this form. I've never done it but it doesn't look quite right. Please let us know what you are following.
it does exactly what I need, because I do pass the AP to the AddAnnot method. SDK documentation agrees with me on it:
I want to know how to do the same line of code as above, only using VBA (I cannot use folder-level scripts in my environment).
Hello. You forgot to add to what page you want to put stamp. The code should be:
Set prop = annot.GetProps
prop.Page = 0
prop.AP = "#kZBRdNJ8NdlGCzWSCKIn3A"
prop.rect = arr