If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Want .xls to reboot pc on exit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-05, 12:46
jamesmc2 jamesmc2 is offline
Registered User
 
Join Date: Jul 2003
Location: Harrow, UK
Posts: 53
Want .xls to reboot pc on exit

I have a reasonably complex VBA prog running in a spreadsheet. It takes a couple of hours to run and so I set it going before I leave work. At the moment on finishing, it merely exists from Excel. I'd like it to force the pc to do a shutdown and reboot. Any suggestions?
__________________
Thank you,
James
Reply With Quote
  #2 (permalink)  
Old 01-17-05, 16:38
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Issue a "shutdown -r" command line? You can also give it a time parameter to give excel a bit to exit gracefully.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 01-17-05, 18:14
jamesmc2 jamesmc2 is offline
Registered User
 
Join Date: Jul 2003
Location: Harrow, UK
Posts: 53
How can I do that? It's running unattended VBA so no command line interface. I need to find a VBA solution.
__________________
Thank you,
James
Reply With Quote
  #4 (permalink)  
Old 01-17-05, 18:57
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
use Shell()
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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