Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim MyFileName As String
- Dim CurrentWB As Workbook, TempWB As Workbook
- Set CurrentWB = ActiveWorkbook
- ActiveWorkbook.ActiveSheet.Range("my named range").Copy
- Set TempWB = Application.Workbooks.Add(1)
- With TempWB.Sheets(1).Range("A1")
- .PasteSpecial xlPasteValues
- .PasteSpecial xlPasteFormats
- End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement