+ Reply to Thread
Results 1 to 3 of 3

Shutting Down a Computer via MACRO

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Question Shutting Down a Computer via MACRO

    Hello,


    A currently opened C:\CALCULATIONS\FIRST\EVALUATIONS.xlsm. file runs a code, saves the changes and closes itself. However Is there a way so that after finishing running the code the machine also Closes all the running applications, and shuts down by itself, through the use of VBA?
    If so, then please forward me the pieces that I need to add for this operation to be successful.

    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Shutting Down a Computer via MACRO

    Look here----->http://www.vbaexpress.com/kb/getarticle.php?kb_id=515
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Shutting Down a Computer via MACRO

    wouldn't be using excel for something windows should be doing

    look up task scheduler instead

    http://www.sevenforums.com/tutorials...ally-task.html
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Save changes prompt when I am shutting down the computer.
    By ginozza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2012, 11:21 AM
  2. shutting down excel
    By desertbum in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-13-2012, 02:39 PM
  3. Excel shutting down during save
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 07-25-2011, 12:13 PM
  4. Shutting off calculation in certain areas
    By letitbleed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2009, 05:03 PM
  5. excel shutting down when saving
    By MountainGoat in forum Excel General
    Replies: 0
    Last Post: 11-17-2008, 04:33 PM
  6. Excel shutting down - not wanted!
    By Linda Broyles in forum Excel General
    Replies: 4
    Last Post: 12-06-2005, 05:25 PM
  7. HOW CAN I STOP MACRO FROM SHUTTING OFF NUMERIC LOCK?
    By MACRO SHUTTING OFF NUMERIC LOCK in forum Excel General
    Replies: 2
    Last Post: 12-04-2005, 06:25 AM
  8. Replies: 3
    Last Post: 11-22-2005, 05:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1