Click here to get back home

ArcObjects/VBA Import values from excel into a form

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
ArcObjects/VBA Import values from excel into a form Simon 10-03-2007
Posted by Simon on October 3, 2007, 4:46 am
Please log in for more thread options
In short - is this possible?

I have an excel worksheet with the fields as rows, and a user inputs
values in the relevant columns and saves it.

I have created a form in ArcGIS - I would like to click the load
button, which prompts for location of spreadsheet, and then once
selected, it will pluck out the relevant cell-values from the
worksheet and dump them in the relevant text-boxes in the form.

I have not seen this done before with Excel. Any pointers would be
great.


Posted by Me on October 3, 2007, 12:36 pm
Please log in for more thread options
Simon wrote:
> In short - is this possible?
>
> I have an excel worksheet with the fields as rows, and a user inputs
> values in the relevant columns and saves it.
>
> I have created a form in ArcGIS - I would like to click the load
> button, which prompts for location of spreadsheet, and then once
> selected, it will pluck out the relevant cell-values from the
> worksheet and dump them in the relevant text-boxes in the form.
>
> I have not seen this done before with Excel. Any pointers would be
> great.

In VB/VBA:
1) open your form
2) read the Excel file name
3) open it (google it... "VB excel open")
4) read the values ( value = cells(rowID,colID) )
5) write the values into your form

Jean


Similar ThreadsPosted
ARC GIS excel joins with zip codes May 29, 2008, 12:45 pm
Beginner question - transfering addresses from Excel to map? July 11, 2004, 12:23 pm
SHP with Z and M values June 23, 2005, 12:18 pm
Conversion of DN to Temperature values June 8, 2007, 5:37 am
A pixel with multiple values April 11, 2008, 5:00 am
Digestible form of country boundary data May 5, 2004, 8:48 pm
BIL image with signed cell values? April 22, 2005, 8:26 pm
erdas, max values, point type February 8, 2006, 3:29 pm
HOW TO IMPORT A NEW RASTER MAP? November 14, 2006, 1:16 am
How to import vector map? November 16, 2006, 10:47 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap