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 10-21-2008, 11:22 PM
stichlynch stichlynch is offline
Junior Member
 
Join Date: Apr 2008
Posts: 7
Default Run macro from Access Button

Hi there,

How would I run my macro from with access by pressing a button on a form. I know how to create buttons but know nothing about VBA so I'd need this explain with a little detail.

Thanks for your help

Stephen
Reply With Quote
  #2 (permalink)  
Old 10-22-2008, 02:01 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

You can call Automation Anywhere tasks from any another program or a script. For example

To call Automation Anywhere 'download-data.atmn' from an excel macro, add following text into any excel macro.

Dim RetVal
RetVal = Shell("C:\Program Files\Automation Anywhere\Automation Anywhere.exe "C:\Documents and Settings\<your username>\My Documents\Automation Anywhere\Automation Anywhere\My Tasks\download-emails.atmn" /u", 1)

If task is successful it returns 0 to the calling program or if it encounters any error it will return 1.

Note : All the tasks are stored under My Documents\Automation Anywhere\Automation Anywhere folder.

Hope that helps.
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 08:58 AM.


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