![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: Benicia, CA
Posts: 31
|
I have tried searching for this but is there a way to have my computer shut down without saving anything at a certain time using VBA code? Any help would be great.
Thanks, Greg |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
By some strange coincidence, I have actually programmed such an application. What my app did was when Excel was opened, the user was prompted with a userform that asked the user to enter a time. the application then waited until that time using "Application.Wait" then called this function with the value "True" to shut down NT.
I hope this helps you. I can't possibly think what you'd want to use this for. I just know exactly why I wanted it. |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Mark... you wanted all power cut when the bailiffs came round, right ?
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Tulsa, OK
Posts: 354
|
Is there anything computer-wise that CAN'T be done with Excel???
|
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Quote:
Xl cannot do since Excel uses VBA. |
|
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Quote:
Mind you, this is the same boss that calls me into his office to ask him how to open a *.zip file. "Um, yeah, you just double-click on it since you've got WinZip installed." |
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Feb 2002
Location: Benicia, CA
Posts: 31
|
Thank you very much for the response. Would I need to change something if i am using XP? The reason I want it is kind of stupid. I usually leave my home computer on when i go to work but am usually sending files (big mp3 mixes) to some friends so I want to be able to just shut my computer down after those are done instead of leaving my computer on all day. Anyway, thank you. I will give it a try when i get home.
Greg [ This Message was edited by: greg0226 on 2002-04-15 13:28 ] |
|
|
|
|
|
#8 |
|
New Member
Join Date: Feb 2002
Location: Benicia, CA
Posts: 31
|
What else do i need to do with this code because I can't seem to get it to work? Thanks.
Greg |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|