|
Sub BuatExcel()
'Sebelumnya Tambahkan
Reference => "Microsoft Excel 9.0 Object Library"
Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook Dim xlSheet As Excel.Worksheet Const sFile = "C:\Test.xls" Set xlApp = New Excel.Application Set xlBook = xlApp.Workbooks.Add Set xlSheet = xlBook.Worksheets(1) xlApp.Visible = True xlSheet.Cells(1, 1) = "Ini File Excel" xlSheet.Cells(2, 1) = "Tulisan ini dibuat Dari VB 6" xlBook.SaveAs sFile xlBook.Close xlApp.Quit Shell xlApp.Path & "\excel.exe " & sFile, vbMaximizedFocus Set xlSheet = Nothing Set xlBook = Nothing Set xlApp = Nothing End Sub ===== Referensi Dari Pak Masino Sinaga
=====
|
- Re: [Programmer-VB] Tanya dong gmana cara create... PSN - Sukamandang Factory
