How can I check, is document selected, when I export data from view?(Using an Agent)

How can I check, is document selected, when I export data from view?(Using an Agent)for example, this string “If vw_ent.isDocument Then” checks, is position in view a document. So, how can check, did the document select? Thanks.

Subject: How can I check, is document selected, when I export data from view?(Using an Agent)

To get all selected documents set the agent to run on selected documents and use db.unprocesseddocuments

Dan