DannyJ3al

Excel Spreadsheet

9 posts in this topic

Hi everyone 

I am fairly new to AutoIT and I am looking to take the data from a spreadsheet (excel) and input the data from each column row by row into a webpage for testing.

The spreadsheet column headings are First Name, Last Name, D.O.B, Vehicle Registration.

I am then looking to map the first row of data into a webpage automate the functions on the webpage (something I can already do) and then move onto the next row for the next test.

Please could some help me write a script for this.

Many Thanks

Dan 

P.s I am using Version 3.5.4 

 

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!
AutoIt comes with an Excel UDF that provides all functions you need to process your Excel workbook:

  • _Excel_Open
  • _Excel_BookOpen
  • _Excel_RangeRead
  • _Excel_BookClose
  • _Excel_Close

Please check this functions (and example scritps) in the help file.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks for the reply!

I have managed to now pull the data I need and put this into an Array I just need to know how I can now get the data from one cell and make that available to be populated into the website.

Thanks

Dan

Share this post


Link to post
Share on other sites

Which browser do you intend to use? AutoIt comes with an UDF for the Internet Explorer. More UDFs for other browsers are available.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Chrome :) 

Im more worried about making the data available than getting it into the fields on the web page. But I need all the help I can get haha

Share this post


Link to post
Share on other sites

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thanks :)

Would you know how I get a value from the array and using the send command write that to a field?

Share this post


Link to post
Share on other sites

You know that Send is not very reliable because it might depend on user action etc?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Yeah that's fine only using send for another program to contain the data which is a bespoke program.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now