+ Reply to Thread
Results 1 to 5 of 5

Copying a worksheet when closed

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Copying a worksheet when closed

    Hi all

    This may be near on impossible, but is it possible to take a copy of a spreadsheet say at 5pm every friday, even when the workbook is closed?

    I know i can do this manually, but there are 9 sheets in all different locations i need to save a copy as, and want to be able to do this my just clicking a command button

    is it possible?

    Dan

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Copying a worksheet when closed

    Yes, use the filesystemobject to copy the files, or do you want the data appeneded to an existing sheet?
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: Copying a worksheet when closed

    Nope just a complete copy of the worksheet, il give it a go thank you

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Copying a worksheet when closed

    You can just use VBA's FileCopy statement if you are copying the workbook. If you want an exact copy of a worksheet, you have to open the file.
    Last edited by romperstomper; 07-17-2014 at 06:15 AM.
    Remember what the dormouse said
    Feed your head

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Copying a worksheet when closed

    Hi,

    Is there a reason why you can't get the timer macro to open the workbook, copy the sheet and then close the first workbook?

    Seems to me that that's the simplest approach.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Copying Data From Closed Workbook
    By ukhellfire in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-20-2013, 09:49 AM
  2. Copying from a closed workbook
    By Dave H9 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-15-2011, 05:02 AM
  3. Copying data from closed Workbooks
    By danman1043 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2008, 09:11 AM
  4. Copying a whole sheet from closed workbook
    By janeyjamjar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2007, 12:08 PM
  5. Copying from closed files and IF statement
    By Robert in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-14-2005, 09:50 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