Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a scrip that I would like to run from the toolbar. In VBA, you would create a buttton that would collect the xy coordinates and pass the variables to the script for running. I can't seem to figure out how to pass the variables. When i create a button and click, the script ask for the variables before I have time to click the map.

Here is an example of the script I am using:

Streetview/Bing Bird's Eye Add-In

Thanks a bunch!


share|improve this question
VB.NET script? I don't think such a thing exists. Are you sure you are talking about VB.NET? – stakx Feb 20 '12 at 8:34

It sounds like you need to create a UIToolControl not a UIButtonControl. UIToolControls events interact with the view.

Creating custom commands with VBA and UI Controls

share|improve this answer

For walk-thru of how to build a button using the "Add-in" technique see ESRI's example, which is mentioned as a resource in answering a previous question on this site that may be of use to you.

share|improve this answer
I believe Heather is attempting to add the script to a VBA toolbar, not an add-in. – artwork21 Feb 20 '12 at 3:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.