Hi,
I am trying to save a new worksheet using a value in my sourcesheet and the tab name of the sourcesheet. My code works well if I just use the value, but as soon as I add the sourcesheet name code, I get an error. If I just do the A1 value it worksCan you help?
[Code]
Sub NameNewWorksheet...
I'm trying to copy groups of sheets to a new workbook using VBA. But the number of sheets in a group can change depending on a criterion. I have the names of the sheets that I would like to grab, stored in referenced cells.
Is there a way to "stop" after the last cell with a value? If I have...
Hey guys,
I'm very new to using VBA. My goal here is to be able to select a changing list of sheets using the vba and copy them into a new workbook. I have a standard position for the sheet names but the sheet list could be 5 sheets (as it is in the code below) or it could be 25. Is there a way...
I have a Workbook with several Worksheets. Each worksheet has some VBA code. In one of the worksheet, I copy the worksheet to a new workbook (book2) and save, giving it a new name. The code looks something like this:
With DestWB
.SaveAs TempFilePath & TempFileName & FileExtStr...
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.