Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Object in VB when running under scheduler control

Hello;

I've done a VB program that opens an Excel Sheet Object
and writes some data into it from Access. It works fine
when I activate the .cmd file that starts the program, but
if I automate it by means of the build-in MS scheduler, it
gets an error when the program does "Set objexcel =
CreateObject("Excel.Sheet")". I should add that I only get
this error when running on a server. The program can run
under scheduler control on my own labtop without problems.
I use the same user ID on the server and in the Scheduled
Task (Run as: <user ID.)

Thank you for any help.

Regards Peter Hoyler
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Excel Object in VB when running under scheduler control

The object can only be created IF excel is
installed...and I'd be surprised if your server had excel
installed - most IT depts don't allow progs to run on
remote servers as there's too much risk involved.

-----Original Message-----
Hello;

I've done a VB program that opens an Excel Sheet Object
and writes some data into it from Access. It works fine
when I activate the .cmd file that starts the program,

but
if I automate it by means of the build-in MS scheduler,

it
gets an error when the program does "Set objexcel =
CreateObject("Excel.Sheet")". I should add that I only

get
this error when running on a server. The program can run
under scheduler control on my own labtop without

problems.
I use the same user ID on the server and in the

Scheduled
Task (Run as: <user ID.)

Thank you for any help.

Regards Peter Hoyler
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Object in VB when running under scheduler control

Thanks for the answer, but Excel is installed. In fact it
works fine as long as I don't use the scheduler. If I sign
on to the server by MS Terminal Client and dubbel-click
the .cmd file that starts the program, it runs fine. But
when I run the .cmd file through the scheduler, I get the
error. Both ways works ok on my labtop.

regards peter

regards peter
-----Original Message-----
The object can only be created IF excel is
installed...and I'd be surprised if your server had excel
installed - most IT depts don't allow progs to run on
remote servers as there's too much risk involved.

-----Original Message-----
Hello;

I've done a VB program that opens an Excel Sheet Object
and writes some data into it from Access. It works fine
when I activate the .cmd file that starts the program,

but
if I automate it by means of the build-in MS scheduler,

it
gets an error when the program does "Set objexcel =
CreateObject("Excel.Sheet")". I should add that I only

get
this error when running on a server. The program can run
under scheduler control on my own labtop without

problems.
I use the same user ID on the server and in the

Scheduled
Task (Run as: <user ID.)

Thank you for any help.

Regards Peter Hoyler
.

.

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
2 Label Options - Forms Object vs Control Box Object Awrex Excel Discussion (Misc queries) 3 July 17th 09 07:10 PM
Running excel macro by scheduler Dan Excel Discussion (Misc queries) 1 August 19th 07 11:48 PM
can't use the control toolbox in excel to embed a flash object cante Excel Discussion (Misc queries) 0 August 7th 06 08:07 AM
Running a Excel Macro from Windows Scheduler haisat[_6_] Excel Programming 3 November 7th 03 09:54 AM
Excel 2002 / XP - Running .XLS with Macros via Task Scheduler James Cox Excel Programming 0 August 19th 03 03:50 AM


All times are GMT +1. The time now is 08:45 AM.

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"