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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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