![]() |
|
Caranya saVe To Ms.Excel [VB.Net] - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html) +---- Forum: Aplication Programing (https://hacker-newbie.org/forum-39.html) +---- Thread: Caranya saVe To Ms.Excel [VB.Net] (/thread-2929.html) |
Caranya saVe To Ms.Excel [VB.Net] - Jacket^Cyber - 05-03-2010 oke kawan.. bAru beLaJar VB.Net Juga neh.. hehehee.. sekarang yAng mAu beLaJar .Net buAt Form.. isinya 3 Text Box..dan 1 command Button.. ne codingnya.. Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oExcel As Excel.Application
Dim oWorkbook As Excel.Workbook
Dim oSheet As Excel.Worksheet
'Buat Objec Aplikasi Excel
oExcel = CreateObject("Excel.Application")
oExcel.Visible = True
'Tambahkan Workbook Dan Sheet
oWorkbook = oExcel.Workbooks.Add
oSheet = oWorkbook.ActiveSheet
'Utak Atik Data Cell Excel
oSheet.Cells(1, 1).Value = "Nama"
oSheet.Cells(1, 2).Value = "Alamat"
oSheet.Cells(1, 3).Value = "Hobby"
oSheet.Cells(3, 1).Value = TextBox1.Text
oSheet.Cells(3, 2).Value = TextBox2.Text
oSheet.Cells(3, 3).Value = TextBox3.Text
'Buat Aplikasi Excel Visible
oExcel.Visible = True
oExcel.UserControl = TrueSekian..semoga berguna..huFh.. RE: Caranya saVe To Ms.Excel [VB.Net] - Evil Gnome - 05-03-2010 thank you om!!! :D RE: Caranya saVe To Ms.Excel [VB.Net] - Jacket^Cyber - 05-03-2010 oKE... siaP.. neXt tutOr ntAr yAh.. Lagi beLajar dasar2nya duLU neh.. RE: Caranya saVe To Ms.Excel [VB.Net] - abu adam - 05-03-2010 ![]() Share terus ilmunya, saatnya belajar VB.Net RE: Caranya saVe To Ms.Excel [VB.Net] - Jacket^Cyber - 05-03-2010 pasTi itu.. ntAr tAk shAre tErus iLmu dAri VB.Net yang ane daPet.. RE: Caranya saVe To Ms.Excel [VB.Net] - oka1302 - 05-03-2010 mantappp
|