LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel running when user is not logged in to windows

I have an Excel workbook all built. Whenever it opens
it queries a bunch of data
formats it
copies it to a spreadsheet without macros or data links
then emails that data sheet to me, and some other people.

I edited the registry to make sure macro security is low.
I use schtasks to run the spreadsheet once a day.
the /TR portion of the schtasks command line is
C:\path\path\path\jason.xls

The first time I did this I used my own domain ID
for the /RU and /RP

This worked great for a couple of months
I always left my account logged in
then I had to change my domain password
and a couple of days later I realized it wasnt working

I decided to hook it to the computers local administrator account
That password doesnt change as often
I logged in as the local administrator
I set it up using schtasks and local administrator for /RU /RP
I tested it and it worked fine

I logout as the local administrator
and log back in as me and test it
I never get my email and Excel is just running hung in the back ground

Any ideas so far?

Can you think of anyway to test out what excel is going to do if it
doesnt have a good user environment?
Lets say hypothetically Excel starts up, and wants to make sure it has
a default printer
If it doesnt have a default printer it says "User should I use
PRINTER_A or PRINTER_B?"
Now if Administrator is actually logged in that default printer does
exist so excel doesnt have a question
But if Administrator is not actually logged in and it is just an
instance of Excel using Administrator's credentials
maybe a printer isnt there, maybe excel is waiting for a non-existent
user to answer a question?

 
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
Getting Logged in User Name in formula... Kedar Agarkar Excel Discussion (Misc queries) 9 October 30th 07 03:55 PM
Getting Logged in User Name in formula... Kedar Agarkar Excel Worksheet Functions 9 October 30th 07 03:55 PM
Running Macro "Logged Off" & Copy/Paste from WORD .rtf into EXCEL .xls JingleRock Excel Programming 0 November 1st 06 01:09 PM
How do you reference the logged on user name in excel? Taurus Excel Discussion (Misc queries) 2 January 24th 06 07:38 PM
Find Out Logged in User Nigel Excel Programming 2 August 30th 05 06:17 AM


All times are GMT +1. The time now is 10:33 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"