Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2011, 03:06 AM
Bluemoon Bluemoon is offline
Junior Member
 
Join Date: Sep 2011
Posts: 26
Default Running loops

Help I'm a complete novice

I've set up a loop command and have managed to get data from EXCEL using the get muliple cells tool. I have then assigned it a variable and managed to get that variable into a web page. what i than want to do is extract the data one row at at time.(which I have a managed) The problem it just loops the the information in the same web box. I want it get the information one cell at a time do an opeartion on that data and then go to next row and so on.
Reply With Quote
  #2 (permalink)  
Old 09-14-2011, 02:29 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Bluemoon,

For your requirement, you will have to make use of the Loop "each row in an excel datasheet" and then for putting the values of the excel file to the web page, You will have to make use of the "Excel Cell Column" variable.

You can visit the following link which contains an example for the same: Excel to Web, Fill the web form with data from Excel spreadsheet

Thanks & Regards
Reply With Quote
  #3 (permalink)  
Old 09-19-2011, 02:29 AM
Bluemoon Bluemoon is offline
Junior Member
 
Join Date: Sep 2011
Posts: 26
Red face

Hi Thanks for the reply I'm still having problems. I need to put a step in the excel column() comand. I can get the the data from a an ecell file by useing the 'get multi cells' tool and have assign it a variable. What I now want to do is paste that data one cell at a time hit the enter to go to another web page then go back to the first web page and use the next cell down from the coloumn I cipied in excel
Reply With Quote
  #4 (permalink)  
Old 09-19-2011, 04:20 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Bluemoon,

If you can send us the task file, it will be more helpful for us to guide you.

Thanks & Regards
Reply With Quote
  #5 (permalink)  
Old 09-20-2011, 12:25 AM
Bluemoon Bluemoon is offline
Junior Member
 
Join Date: Sep 2011
Posts: 26
Red face

Hi Thanks
for the supprt. I've attached my task as a text file hope this is clear. Wheere it falls down is line 20 (see below)

Set text '$Follow_Code$' into invDeck in the webpage 'Material Global Optimization'


I want to the hit the submit button on the web page after eacheach cell has been input from the data set a copied from an excel file. I used the comand below then set up a loop

Excel : Get multiple cells from cell "A6" to cell "A23". Session: CopyCells

19 Start Loop " Each row in an Excel dataset of Session = CopyCells"
20 Set text '$Follow_Code$' into invDeck in the webpage 'Material Global Optimization'
21 Variable Operation : $Excel Column(1)$ To $Follow_Code$



I hope this is clear as I'm still very new to this.
Attached Files
File Type: txt Ant.test.txt (3.9 KB, 2 views)
Reply With Quote
  #6 (permalink)  
Old 09-20-2011, 02:09 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Bluemoon,

We have gone through the file you sent us and Line no. 20 is a set text control which you told has dropped. You will have to re-capture it again. For this you can use "manage web controls" command under the "Web Recorder" command in the command list.

Just type in the url of the webpage on which the "set text" control has to be captured and hit "capture".

Let us know if this doesn't help.

Thanks & Regards
Reply With Quote
  #7 (permalink)  
Old 09-21-2011, 02:13 AM
Bluemoon Bluemoon is offline
Junior Member
 
Join Date: Sep 2011
Posts: 26
Default Finding a cell

Thanks for the help I'n early there The only issue I now have is that I want Automation Anywhere to go to an open excel spread sheet and find a specific cell. For example I have an excel file with the date in colums I want my macro to find today or yesterday and paste information in the cell underneath
Reply With Quote
  #8 (permalink)  
Old 09-21-2011, 04:00 PM
forumstaff forumstaff is offline
Senior Member
 
Join Date: Oct 2010
Posts: 521
Default

Hello Bluemoon,

You can make use of the "If" conditional construct for achieving your requirement.

You can use "Go to cell" command from the "Excel" commands to go to a specific cell and then you can make use of the "If" conditional statement.

THE LOGIC FOLLOWS AS:

"If" variable Equals today's date then
"Go to one cell below"
"Set cell"

"Else If" variable includes yesterday's date
"Go to one cell below"
"Set cell" ("Set cell" command from "Excel" for pasting the value)

For example:

1 Excel : Open Spreadsheet "C:\datevalue.xls". Active Sheet: Default. Session: Default
2 Excel : Go to cell "B1". Session: Default
3 Excel : Get value of Active Cell and assign to variable "Prompt-Assignment". Session: Default
4 If $Prompt-Assignment$ Equal To "9/21/2011" Then
5 Excel : Go to one cell below the active cell . Session: Default
6 Excel : Set value of Active Cell with "complete". Session: Default
7 Comment: Please enter the conditional commands here.
8 End If

Thanks & Regards
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 04:07 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved