+ Reply to Thread
Results 1 to 2 of 2

workbooks.close method not working

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    workbooks.close method not working

    Hi all, this is most likely a very obvious thing I am missing but I am having trouble with the below piece of code and cannot work out why I cannot close the workbook I have opened and copied.

    Please Login or Register  to view this content.
    This is all the code I have so far so you can see the bigger picture (I can add workbook as well if it helps?)

    Please Login or Register  to view this content.
    Last edited by Sc0tt1e; 06-27-2017 at 05:12 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: workbooks.close method not working

    Your FName includes the path. Use code like this, and create a workbook object to work on

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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] workbooks.close savechanges:=false doesn't seem to be working
    By z0rdd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2016, 08:28 AM
  2. [SOLVED] How to bypass close method
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2015, 07:38 AM
  3. [SOLVED] Open workbooks update the main one and close the other workbooks
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2013, 07:12 AM
  4. [SOLVED] Open Multiple Workbooks, Record names, Copy paste to Active Workbook, Close the Workbooks
    By vba_madness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 06:09 AM
  5. Macro to close all open workbooks save two not working
    By drajanm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2011, 05:58 AM
  6. Code to close multiple workbooks not working
    By drajanm in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-23-2011, 07:42 AM
  7. Workbooks.Close not working?
    By dvent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-26-2008, 08:26 AM

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