Save Worksheet Using Vba. Path & "\" & _ Left(ThisWorkbook. The VBA Save As command saves an Excel file as a new file, similar to clicking the Save As icon or using the Save As Shortcut (Alt > F > A).
In this example we will see how to save Active Sheet and specific worksheet as new excel file using VBA. SaveAs is a property/function of Workbook class. Learn how to copy data from one workbook to another using VBA macros in Excel, includes copying There are a few ways to copy & paste data with VBA.
Name will get you the name of the active worksheet - no need for a variable.
How To Select Cells Or Ranges By Using Select Worksheet Using Vba.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Need some assistance to complete this VBA code, I've taken it as far as my limited knowledge will get me. And this code should work for all the version of Microsoft.