+ Reply to Thread
Results 1 to 7 of 7

Close Active workbook to different folder

  1. #1
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Close Active workbook to different folder

    HI,

    I've tired to do this on my own and and as in my previous post I need help on this.
    I opened a workbook and moved data from it. Now I would like to close the workbook with out saving to a different folder.
    This is a code that I tried. But, it ask if I want to save. Which I do not.
    The test code is in my master workbook. Not the file I'm trying to close.


    Please Login or Register  to view this content.
    Charles

    There are other ways to do this, this is but 1 !
    Be Sure you thank those who helped.
    IF YOU'RE SATISFIED BY ANY MEMBERS RESPONSE TO YOUR ISSUE PLEASE USE THE STAR ICON AT THE BOTTOM LEFT OF THE POST UNDER THEIR NAME.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Close Active workbook to different folder

    How about this?
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Close Active workbook to different folder

    Hi,

    Thanks for your reply. However, the file does not go to the "QCProcessed" folder.

  4. #4
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Close Active workbook to different folder

    Hi,

    The file I wish to move to a different folder is in the main folder called "QCcard".
    With in it I have 2 folders. One is called "QCComplete" and "QCProcessed".
    The code that I currently use will move the "Completed" file to the correct folder.
    My problem is still with the "QCProcessed". I've tried revamping the code supplied by Backerman.(Thanks) But, I still can not the file to move to the "QCProcessed" folder.
    If someone can shed more light on this. I would be grateful.

  5. #5
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Close Active workbook to different folder

    Hi,

    After more research this is a bit of code that helped me.
    Please Login or Register  to view this content.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Close Active workbook to different folder

    Sorry for late response but due to obligations at work no time to look in it further.
    This could also have been a possibility.
    Please Login or Register  to view this content.
    BTW Thanks for adding rep points.
    Last edited by bakerman2; 08-28-2016 at 02:15 AM.

  7. #7
    Valued Forum Contributor Charles's Avatar
    Join Date
    02-10-2004
    Location
    Biloxi
    MS-Off Ver
    Windows 7, Excel 2003,2007 & Mac2011
    Posts
    845

    Re: Close Active workbook to different folder

    Thanks for the code will keep it.

    Charles

+ 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. [SOLVED] Code to close active workbook without saving
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-23-2014, 03:24 PM
  2. [SOLVED] Save Active Sheet As New Workbook in same folder of the original workbook
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2012, 07:03 PM
  3. [SOLVED] Edit code to close all workbooks except active workbook and other specific workbook
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2012, 09:29 PM
  4. For each workbook in active folder, if workbook name begins with panel
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-23-2011, 03:20 PM
  5. Will not auto Close down workbook when screensaver active
    By jeffwest2 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-11-2009, 10:40 AM
  6. [SOLVED] Delete (kill) active workbook on close: Possible?
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-17-2006, 02:15 PM
  7. How to close specific workbook not all active workbooks?
    By Bon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2006, 10:55 AM
  8. keystroke to close active workbook window
    By Vickie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-07-2005, 07:25 PM

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