Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2003
    Location
    Harrow, UK
    Posts
    53

    Unanswered: 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

  2. #2
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    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? ***

  3. #3
    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

  4. #4
    Join Date
    Mar 2003
    Location
    The Bottom of The Barrel
    Posts
    6,102
    Provided Answers: 1
    use Shell()
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •