Saving Excel Files to Two drives

The Shadowman

New Member
Joined
May 5, 2021
Messages
34
Office Version
  1. 2019
Platform
  1. Windows
Hi I am a first time poster so forgive me if I am not posting in the correct area.

I have for many years been using Excel 97 and created many successful macros to save files to c: and my backup drive at the same time. However, I have just upgraded to Excel 2019
and when I create a macro to save to C: and my backup drive, It saves to the backup drive, but not to C:

Does anybody have a clue to why this does’t work. A straight forward macro saving to C: works correctly

Thanks for any advice given

Robert
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Are you saving to a specific FOLDER on the C Drive ... or directly to the root C Drive ?

I've had issues in the past having files saved to the C Drive here. It appears MS Windows doesn't like that ... wants to protect the C Drive for some reason.
 
Upvote 0
I am saving to a specific drive on C: ,but it doesn’t work. the backup that does work is a usb external drive
 
Upvote 0
Guess you should post your code. Perhaps there is something there ?
 
Upvote 0
For reference ... I created a Folder on my C Drive and named it "Test". Then I used this macro to save an .XLSB workbook to that folder :

VBA Code:
Option Explicit

Sub SaveBookAs()

Dim Path As String
Dim filename1 As String

Path = "C:\Test\"   '<-- edit path as required
filename1 = Range("A1").Text

Application.DisplayAlerts = False

    ActiveWorkbook.SaveAs Filename:=Path & filename1 & ".xlsb"
    
Application.DisplayAlerts = True

Application.Quit
Application.Visible = False

End Sub
 
Upvote 0
Thank you. I think I have solved the problem. I had pasted a portion of an XLSX file into an XLS file and consequently the file would not save in the normal way. I suspect it is something to do with ”compatibility mode”. It’s beyond me, but I got there in the end. Thank you for help
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,739
Members
449,050
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top