Create New Folder, Save as New File and Open after Running VBA

NewatWork

New Member
Joined
Aug 2, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hello everyone,

Sorry in advance if this has already been answered. I would greatly appreciate it if you could link the solution.

This is what I'm hoping to execute: I have a "Manual Counts" sheet that I use at work. Every time I use it, I need to save a new copy in a new folder after inputting the necessary data in it. I'd like to be able to increase efficiency by running a VBA and having the new copy saved automatically in a new folder.

The folder would need to be saved in the file path: C:\Daily Upload and saved as Cell Value found in C6. The File Name would need to be saved using the Cell Values found in C6 and G6.

And if it's at all possible, after running the macro, I'd like the new file to open up automatically without having to find it in the Daily Upload folder.

Thank you in advance and have a great rest of your day, evening and night!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hello,

Does this work as expected?

VBA Code:
Sub SAVE_A_COPY()
    ActiveWorkbook.Save
    ActiveWorkbook.SaveAs ("C:\Daily Upload\" & Range("C6").Value & Range("G6").Value)
End Sub

when doing SAVE AS, the new filename will be open, so bit confused with the last part of your request.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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