Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ani Ani is offline
external usenet poster
 
Posts: 1
Default Issue with Excel Macro

Hi,
I'm trying to use the graphical interface for Scheduler called
WinAT to open up an excel sheet which has a macro. But when this task
runs at the scheduled time, it gives the error - 'Cannot find file
<excel file name......'

If I open up this excel file manually, the macro works fine.
Also, if I manually create a scheduled task at C:\Windows\Tasks and
then try to run the task, the macro works fine. (This task will be
created with username as my account.)

Could anyone please help in this?

Thanks,
Anishya

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Issue with Excel Macro

to simulate a command line entry and to debug you problem. You can go to the
Start menu and chose run. In the run box I typed the following

excel c:\temp\book1.xls

This opened an excel workbook. Youcan also just type excel and a new
workbook will open.

Excel accepts a a parameter the file to open.

the command line definintion for excel can be seen by opening a window
Explorer window.

from the Tools Menu - Folder Options and the Select File Types tab.
find XLS in the File types
Select XLS and press advance.
select Open and then edit.

the DDE line on my computer shows [open("%1")]
this indicates to open the 1st parameter ([] optional) on the command line.




"Ani" wrote:

Hi,
I'm trying to use the graphical interface for Scheduler called
WinAT to open up an excel sheet which has a macro. But when this task
runs at the scheduled time, it gives the error - 'Cannot find file
<excel file name......'

If I open up this excel file manually, the macro works fine.
Also, if I manually create a scheduled task at C:\Windows\Tasks and
then try to run the task, the macro works fine. (This task will be
created with username as my account.)

Could anyone please help in this?

Thanks,
Anishya


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
EXCEL MACRO ISSUE - PLEASE HELP Neil Holden Excel Discussion (Misc queries) 0 February 18th 10 04:52 PM
Excel Macro issue Brian Excel Worksheet Functions 0 November 25th 09 04:32 PM
MS Excel Macro issue msofficehelp Excel Discussion (Misc queries) 2 October 24th 08 01:12 AM
Doing MS Training in Excel, having Macro Issue Judi Excel Discussion (Misc queries) 15 July 17th 08 12:07 AM
Excel Macro Issue Trying to autorun Macro Upon Opening Worksheet wyndman Excel Programming 2 May 25th 04 06:59 PM


All times are GMT +1. The time now is 03:12 PM.

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

About Us

"It's about Microsoft Excel"