VBA/Macro to export one sheet

fat controller

Slightly round the bend..
Local time
Today, 06:42
Joined
Apr 14, 2011
Messages
758
Is there a way to have a bit of code or a macro in Excel to export one sheet only, with formatting, to a new/blank database, and then save that new sheet as a specified string to include the name of the sheet it originated from?
 
Sorry no one seems to have given you a solution but have you found a solution?

If not you can do something like this:

Code:
Sub CopyAndSave()
'Change the sheet name
    Sheets("Play").Copy
'Save the workbook
ActiveWorkbook.Save
'What do you need to do next
End Sub
 

Users who are viewing this thread

Back
Top Bottom