Andreea Posted January 17, 2014 Posted January 17, 2014 Cum sa creezi foarte simplu un nou Workbook Excel folosind Visual Basic for Applications Nimic mai simplu.Copiati codul de mai jos in VBA in Excel si customizati calea noului fisiere din penultima linie de cod.Bafta 1). Sub AddSaveAsNewWorkbook()2). Dim Wk As Workbook3). Set Wk = Workbooks.Add4). Application.DisplayAlerts = False5). Wk.SaveAs Filename:="C:\MyData\fisier_nou.xls"6). End Sub
Recommended Posts