Hi everyone
Really hope a genius could help me
I'm using the code below in a command button to save a particular worksheet in a new workbook, however I am trying to achieve 2 things, please could someone help me?
1) How do I only paste as values only but while also retaining the formatting of colours, borders etc?
2) Instead of saving in a particular folder by default and saving as "BOM.xlsx", how can I change this to instead prompt the user WHERE to save and WHAT to call the new workbook?
Thanks so much for any help and guidance!
Really hope a genius could help me
I'm using the code below in a command button to save a particular worksheet in a new workbook, however I am trying to achieve 2 things, please could someone help me?
1) How do I only paste as values only but while also retaining the formatting of colours, borders etc?
2) Instead of saving in a particular folder by default and saving as "BOM.xlsx", how can I change this to instead prompt the user WHERE to save and WHAT to call the new workbook?
Code:
Sub ExporthisBOM() Dim wb As Workbook
Set wb = Workbooks.Add
ThisWorkbook.Sheets("BOM Export").Copy Before:=wb.Sheets(1)
wb.SaveAs "C:\Users\Folder\BOM.xlsx"
End Sub
Thanks so much for any help and guidance!