What is the complete recipe for installing VBA for ArcGIS 10 Desktop?
The Esri help topic on this is incomplete. From the number of threads I found troubleshooting this I'm not the only one experiencing difficulties. I've opened a tech support issue, but am still waiting for a response. Perhaps GIS.se is faster?
I have installed the VBA sdk kit from %install_media%\ArcGIS Desktop 10\SDK_VBA
.
In ArcGIS Desktop Adminstrator I've set license level to Single Use.
Under Desktop> Availability VBA is listed as installed but not authorized.
When I run the [Authorize Now] wizard VBA is not listed in the available extensions.
1 Answer 1
the Q was about single use, but I might as well round out things out by providing the answer for concurrent licensing use as well so everything is in one place (I don't think it warrants a separate question).
Prepwork:
- Contact your customer support representative, by email, and requestVBA extension authorization (it's free, and no I don't know why you have to ask). Wait.
- Logon to https://customers.esri.com/, head to "Authorizations". VBA will show in the list, after your service rep adds it.
- Click on VBA link, you should see a new page with an authorization number. It will look like
ELF1234567890
. Click on that, so that you can get to a page where the text can be selected and copied (2x-click, [ctrl-c]). Also note number of licenses.
On the license server:
- run ArcGIS License Server Administrator> Authorization> [Authorize Now]
- select "...and need to authorize additional licenses" and "ArcGIS Desktop", [next]
- select ...using the internet, [next]
- fill out all the customer profiling info they already have on you, again, [next]
at the Extensions screen ignore the list presented (3D analyst, etc) and slap [Other Extensions]. Fill out info copied from #3, then [Ok], [next], [finish].
Feature :
VBA
<-- case sensitive!
Auth# :ELF123456890
No. Licenses:99
- Back at license server admin main screen verify VBA is listed under Availability.
On each client machine:
- install the VBA SDK from the install media (
ArcGIS Desktop 10\SDK_VBA\setup.exe
) - In Arcgis Administrator ensure Concurrent Use license is selected
- Run Arcmap and look under Customize menu for VBA Macros.
Sources:
- using VBA with Arcgis 10
- you need to use the [Other] button at Extensions page - http://forums.arcgis.com/threads/1628-Beta-10-VBA-license-required?p=37541&viewfull=1#post37541
- typos in Feature still finish successfully, but it's a false message - http://forums.arcgis.com/threads/1131-Beta-10-Anybody-know-how-to-register-VBA-in-Beta-2?p=3844&viewfull=1#post3844
-
Hmmmmm...it's almost as if they want to make it hard. Nawww.Chad Cooper– Chad Cooper2011年10月12日 22:13:01 +00:00Commented Oct 12, 2011 at 22:13
-
1they are making it hard because it will not be in the next version. Even the version 10 VBA is not as integrated as it once was - cannot write global functions and tools, only document level.Jakub Sisak GeoGraphics– Jakub Sisak GeoGraphics2011年10月12日 23:45:10 +00:00Commented Oct 12, 2011 at 23:45
-
They've moved, and are movign futrther, towards Python with arcpy. I find it much better than VBA, imoHairy– Hairy2011年10月13日 08:05:05 +00:00Commented Oct 13, 2011 at 8:05
-
@Hairy agreed, python has way more power, flexibility and potential than VBA. However VBA has access to things that arcpy doesn't, unless one climbs in through the window, and that's not a reliable strategy. I hope that arcpy subsumes everything that used to be VBA, before too long.matt wilkie– matt wilkie2011年10月17日 23:33:55 +00:00Commented Oct 17, 2011 at 23:33