Intelligent Automation & Macro Software  

Go Back   Tethys Solutions 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 06-10-2009, 08:02 AM
trentonponder trentonponder is offline
Member
 
Join Date: Jan 2009
Posts: 59
Default $counter$ variable within an Excel Loop to determine Excel row

I'm trying to do the following:

Start Loop "Each row in an Excel dataset of Session=Default"
If $Excel Column(1)$ includes "blah blah" then
Variable Operation: $Counter$-1 To $variableX$
Excel: Get value of cell "A$variableX$" and assign to variable "variableY"
End If
End Loop


My goal is to retrieve the value of the cell ABOVE the current loop instance and assign it to "variableY".

However, I keep on getting an error that I need to specify a proper cell, so it seems $counter$ is not working properly in this instance.

Any ideas?
Reply With Quote
  #2 (permalink)  
Old 06-10-2009, 01:43 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

Inside loop, you can store the current cell value in any user variable and can use it as previous cell value in next iteration of loop. We have attached a sample task for your reference. To run this task,
. Please copy attached .atmn under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Copy .xls under C:\.

Hope that helps.
Attached Files
File Type: zip sample.zip (584 Bytes, 6 views)
Reply With Quote
  #3 (permalink)  
Old 06-10-2009, 08:44 PM
trentonponder trentonponder is offline
Member
 
Join Date: Jan 2009
Posts: 59
Default

Quote:
Originally Posted by forumsupport View Post
Hello,

Inside loop, you can store the current cell value in any user variable and can use it as previous cell value in next iteration of loop. We have attached a sample task for your reference. To run this task,
. Please copy attached .atmn under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Copy .xls under C:\.

Hope that helps.
Thanks, works perfectly!
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 01:57 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved