Save specific sheet under variable name & location as csv

Rollla

New Member
Joined
Apr 23, 2019
Messages
1
Hi,

I've got a workbook with multiple sheets, which is used to facilitate operational processes. I'm almost done with the "tool" except for one more thing.
I am looking for a vba code to save the sheet called "Input CW1" as CSV with the following side notes:
- I wish to save the file under the name I put in the tabblad "Output CW1" cell B2
- I wish to save the file in the location I put in the tabblad "Output CW1" cell B3
- I wish to connect this macro to a button in the tabblad "Output CW1" so the operator completes field B2 & B3, presses the button and then gets the file in the desired location.

Since I have little to zero knowledge of VBA I hope someone can support me over here.

Roland
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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