Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Running Macros Remotely (.tcl file)

I am trying to set up an automated macro routine via a .tcl "tickle"
file (scheduled by the windows scheduler) to execute at a set time
each day. When I execute the .tcl file below it will open the excel
file but it errors out when it tries to execute the macro

Error Msg : The macro may not be available in this workbook or all
macros may be disabled.

I can run the macro with no issues manually from the excel file.

1) does anyone have any idea what might be wrong ?

2) is there any other way to automatically run the macros at a given
time ?

Thanks, Grant


TCL script:

set application [::tcom::ref createobject "Excel.Application"]
$application Visible 1

set workbooks [$application Workbooks]
set workbook [$workbooks Open "D:/Profiles/r33998/Desktop/Working
Parts Tracker/Split Out Tracking System/TCL testing.xls" 0 FALSE 2
sourcing]

$application Run "TCL testing.xls!protect_worksheets_"

#$workbook Save
$application Quit
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Macros in a Shared File [email protected] Excel Programming 2 May 5th 08 08:26 PM
Copy a file remotely Jeff Excel Discussion (Misc queries) 1 January 26th 08 08:20 PM
Running Macros without opening file. [email protected] Excel Programming 2 January 28th 06 06:56 AM
Running & maintaining macros remotely Fanatik Excel Programming 1 September 26th 05 12:25 PM
VBA - Run Macros Remotely? jordanctc[_24_] Excel Programming 1 October 14th 04 11:12 AM


All times are GMT +1. The time now is 10:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"