Results 1 to 10 of 21

Thread: Close All Open Excel Files With VBA Open Close File issue unsolved

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Quote Originally Posted by fixer View Post
    chill Doc Sir sorry for the same sir
    .. Is no problem Chill is good and healthy. - I know it is difficult for you to communicate….


    But the same problem again . I think you are unable to explain

    This is question :
    vba code macro will be placed in a sample1.xlsm
    and there are excel files which are opened (it can be 2 or 3 or more also files are opened along with sample1.xlsm)
    i have to close all that opened file by vba and keep only sample1.xlsm opened bcoz it contains vba code
    (any type of excel file it can be,i request sir only sample1.xlsm file will be opened and any other file opened then it should be close )


    This is correct answer to question: http://www.excelfox.com/forum/showth...ll=1#post12537


    Answer is correct to question.



    If macro http://www.excelfox.com/forum/showth...ll=1#post12537 is wrong for you , then you have asked the wrong question



    Try again to explain what you want
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

  2. #2
    Senior Member
    Join Date
    Jul 2019
    Posts
    382
    Rep Power
    0

    Close All Open Excel Files With VBA Open Close File issue unsolved

    i need a macro
    i will place the macro in any file and i will run that macro
    and when i run that macro all files should be closed if there will be any opened file except the file in which macro is placed
    Last edited by DocAElstein; 06-24-2020 at 03:07 AM.

  3. #3
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Quote Originally Posted by fixer View Post
    i will place macro in any file and i will run that macro
    and when i run that macro all files should be closed if there will be any opened file except the file in which macro is placed
    Put this macro http://www.excelfox.com/forum/showth...ll=1#post12537 in any file.
    Run the macro
    All Excel files will be closed , except the file in which you have put the macro: The file with the macro will stay open. All other Excel files will be closed.
    Last edited by DocAElstein; 03-03-2020 at 05:14 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Replies: 1
    Last Post: 02-19-2015, 03:49 AM
  2. Replies: 4
    Last Post: 04-10-2014, 10:58 PM
  3. Replies: 6
    Last Post: 09-07-2013, 03:40 PM
  4. Replies: 15
    Last Post: 08-23-2013, 12:03 PM
  5. Replies: 4
    Last Post: 06-09-2013, 01:43 AM

Tags for this Thread

Posting Permissions

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