(Visual Basic for Applications) A subset of Visual Basic that provides a common language for customizing Microsoft applications.

learn more… | top users | synonyms

4
votes
1answer
835 views

FIELD CALCULATOR VB scripting

In my attribute tables field. I am trying to get rid of the "&" in between names i.e. "John Adams & wife" and want it to say "John Adams and Wife" in all the attributes with "&". What is ...
3
votes
2answers
4k views

use VBA in a code to edit the attributes table

so i have a point shapefile. I made a button that finds the best fit line for selected points and calculates the azimuth of it (Zero degrees being the east) is there a way i can add something to the ...
3
votes
2answers
727 views

Add-in; Failure to get code to execute when toolbar button pressed

I had written several VBA routines for ArcGIS up through v9.3 and have since upgraded to 10. Since VBA will be a thing of the past in the next version, I downloaded and installed VB Express 2008 and ...
2
votes
1answer
2k views

convert from C# to VBA

I have a code that wrote with C#.But I need to convert it to VBA and then use from it into GIS. how can I convert it be VBA?
4
votes
1answer
2k views

How can I import layer symbology from another layer programmaticaly with ArcObjects & VBA?

I would like to be able to develop a procedure that runs through all layers in the TOC and if the layer (name) exists in a specific folder where I am storing layer files with complex symbology I would ...
3
votes
2answers
861 views

How can I load VBA customizations stored in a “document-level custom template” into a Map Document created from a “Normal.mxt” template in ArcGIS 10?

I have all kinds of custom tools that are called from UI Controls stored in a document-level map document (my custom template). In earlier versions of ArcGIS these were stored in the global-level ...
5
votes
1answer
4k views

ArcMap field calculator VBA question

I am trying to use ArcMap's Field Calculator to populate values in a column based on a value in another column. So, in pseudo-code: if [field1] = 'Foo' set [field2] = 'Bar' endif Something like ...
1
vote
2answers
704 views

I want create a crystal report in gis with writing code

I am working in ArcGIS 9.3.1 and I try to write code for creating a crystal report and work with it in VBA, but I recieved an error when the program arrived at this line of code: Dim pProj As ...