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 12-14-2009, 04:17 AM
DavidCAllen DavidCAllen is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default Run Excel Macro

Good Morning

Some assistance please. I am trying to run a Macro which is currently within Personal.xls, on an excel document that I am opening via a loop through each file in a folder. My current task is as:

Start Loop "Each File in C:\Tasks\BB"
If $Extension$ Equal to "xls" Then
Open "$CurrentDirectory$\$FileName$.$Extension$"
Excel: Run Excel Macro "BB45".Session: Default
End If
End Loop

The error I get is that AA cannot find the Macro BB45 with the Session name Default, I have tried a Session Name of PERSONAL, with the same result.

I have tried opening the Personal.xls via Open Spreadsheet command before the loop, this then has the effect of the Macro running on the Personal.xls workbook rather than the file opened by the loop.

Many thanks

David
Reply With Quote
  #2 (permalink)  
Old 12-15-2009, 09:59 AM
DavidCAllen DavidCAllen is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default

Have resolved my problem, by using the keystrokes comand instead of the Run Excel Macro, having assigned a Hot Key to the macro.

Used a wildcard for the Excel session of *Excel*.

Would still be intrested in knowing if there is a solution useing the Run Excel Macro, command.

Many thanks
Reply With Quote
  #3 (permalink)  
Old 12-15-2009, 01:27 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 100
Default

It looks like you're trying to run a Macro stored in an Excel Personal Macro Workbook.

I've also had problems with the particular feature. Only macros stored directly in the file you're trying to edit will work, try it on a file named something other then Personal.
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:14 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