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 07-04-2009, 11:08 AM
GMPLLC GMPLLC is offline
Junior Member
 
Join Date: Jun 2009
Posts: 25
Default Loop through Excel Dataset

Can't figure out how to do simple loop;

Open spreadsheet
Loop through
grab cell value in column three
append value to .txt
End loop


My end goal is to have a list variable in txt file.
Any ideas would be greatly appreciated. Thx
TK
Reply With Quote
  #2 (permalink)  
Old 07-04-2009, 11:22 AM
GMPLLC GMPLLC is offline
Junior Member
 
Join Date: Jun 2009
Posts: 25
Default for reference

For reference I have attached what I have so far. As you can see I have nothing in the way of appending the value to the txt file. My goal is to have a txt file with cell A3=A4,A5,A6,A7 and so on.
Attached Images
File Type: jpg test.jpg (73.6 KB, 6 views)
Reply With Quote
  #3 (permalink)  
Old 07-07-2009, 01:42 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,337
Default

Hello,

You can use Excel:Get Multiple Cells command to fetch the data from range of cells. When fetching values for multiple cells, the value is assigned to the system variable $Excel Column (index)$ which you can use in “Loop for each row in an Excel Dataset”.

We have attached a sample task for your reference. To run this task,

.Please copy .atmn under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder.
. Copy book1.xls under c:\.

This task would fetch data from book1.xls and log it into temp.txt file as you mentioned.

Hope that helps.
Attached Files
File Type: zip LogtoTxtFromXl.zip (8.8 KB, 10 views)
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 02:04 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