+ Reply to Thread
Results 1 to 5 of 5

Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

  1. #1
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

    Hi - I have the following code that is supposed to create a Copy as a Backup of the Active Workbook and Save it to a different folder. (See image after the Code for the Error Message)

    Hope someone can assist?
    Many thanks
    Hans302

    Please Login or Register  to view this content.
    Image3.jpg

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,527

    Re: Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

    Hi Hans302,

    It's the colon : you have for the time stamp - this is an invalid character when saving a file. Change it to something else and try again (note the file extension has to be same when using SaveCopyAs).

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

    How about this
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-26-2016
    Location
    London, England
    MS-Off Ver
    365
    Posts
    79

    Re: Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

    Thanks AC - Works just great !!

    I changed the code to make it more readable in the folder to........

    Please Login or Register  to view this content.
    Works perfectly and also added VBA to check if the correct folder exists, and if not, to create it..... Using.....

    Please Login or Register  to view this content.
    Last edited by hans302; 12-07-2019 at 01:23 AM.

  5. #5
    Registered User
    Join Date
    09-01-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    96

    Re: Saving a Copy of an Active Workbook to a different folder (With Full Admin Rights)

    Glad it works for you

+ 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. Replies: 2
    Last Post: 07-25-2017, 02:23 AM
  2. [SOLVED] Saving as a PDF on the active workbook Path and name same as active workbook name
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-22-2016, 12:25 PM
  3. Copy tabs to new workbook and saving in temp folder
    By aganesan99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2014, 03:59 PM
  4. [SOLVED] Copy all "active" data from a worksheet from every workbook in a folder.
    By roblawl in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-23-2012, 05:06 AM
  5. Renaming Active.Workbook and saving it without saving Macro
    By Djwill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2012, 03:09 AM
  6. [SOLVED] How can i modify Admin Rights
    By Webtekr in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2009, 06:04 AM
  7. Replies: 0
    Last Post: 01-05-2009, 01:04 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