Bookmark this page: Add ArcObjects VBA Import values from excel into a form to Yahoo MyWeb Add ArcObjects VBA Import values from excel into a form to Google Bookmarks Add ArcObjects VBA Import values from excel into a form to Windows Live Add ArcObjects VBA Import values from excel into a form to Del.icio.us Digg ArcObjects VBA Import values from excel into a form! Add ArcObjects VBA Import values from excel into a form to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Simon on October 3, 2007, 4:46 am
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
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