Private Sub XLtoCSV()
Set shtData = ActiveSheet
Set wbkDest = Workbooks.Add
shtData.Range("$A$48").CurrentRegion.Copy
'ActiveSheet.Range("a1").PasteSpecial Paste:=xlPasteValuesAndNumberFormats
ActiveSheet.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Application.DisplayAlerts = False
wbkDest.SaveAs Filename:="C:\nv\MPGAllocation.csv", FileFormat:=xlCSV
wbkDest.Close True
Application.DisplayAlerts = True
End Sub
|