Seeker2013
New Member
- Joined
- Jun 2, 2014
- Messages
- 12
I have a quotation form that have two buttons.
One is click and will generate a new quote number.
Another is click and it will be save with the assigned path and file name format.
When I click on save File, the new saved files will also copy the buttons and macron, which I like to delete the buttons and macro completely.
here is my code:
what should I add to be able to delete the buttons and macro in the new destination file?
Many thanks in advance.
One is click and will generate a new quote number.
Another is click and it will be save with the assigned path and file name format.
When I click on save File, the new saved files will also copy the buttons and macron, which I like to delete the buttons and macro completely.
here is my code:
PHP:
Sub SaveWSToNewWBs()
Dim wb As Workbook
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
'ws.Copy
Set wb = ActiveWorkbook
wb.SaveAs ThisWorkbook.Path & "\" & ws.Name & ws.Range("G3").Value & ".xls"
wb.Close False
Next ws
End Sub
what should I add to be able to delete the buttons and macro in the new destination file?
Many thanks in advance.