Privata underXLtoCSV ()
Fastställd shtData = ActiveSheet
Fastställd mest wbkDest = Workbooks.Add
shtData.Range (”$A$48”) .CurrentRegion.Copy
Application.ScreenUpdating = falskt
Deg 'för ActiveSheet.Range (”a1”) .PasteSpecial: =xlPasteValuesAndNumberFormats
wbkDest.Sheet1.Select
deg för wbkDest.Sheet1.Range (”A1”) .PasteSpecial: =xlPasteValuesAndNumberFormats funktion: = _,
xlNone SkipBlanks: =False transponerar: =False
Application.DisplayAlerts = falskt
wbkDest.SaveAs-Filename: = " C:\nv\MPGAllocation.csv ", FileFormat: =xlCSV
riktig wbkDest.Close
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Avsluta suben
|