ai guys need a little help here..i create an interface where user can store their information like name, hobbies, DOB and phone number...the info is stored in sql server..now i want to call back all data that have being stored in sql to excel..when i say all i mean all of it... i tried and manage to run the code but the problem is only the data that are disply in the textbox(used by user to enter data and outomatically display the data when the progrm start) that appear in excel... i know this matter is small to u guys out there but its big for me...so why dont give some help here by giving the approriate code..plssssss
this is code made so give comment....
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim MsExcel As Excel.Application
MsExcel = CreateObject("Excel.Application")
Dim varConnection As New SqlConnection
MsExcel.Workbooks.Add()
MsExcel.Range("A1").Value = "Name_User"
MsExcel.Range("B1").Value = "Date_of_birth"
MsExcel.Range("C1").Value = "Hobbies"
MsExcel.Range("D1").Value = "Phone_Number"
MsExcel.Range("A2").Value = TextBox1.Text
MsExcel.Range("B2").Value = TextBox2.Text
MsExcel.Range("C2").Value = TextBox3.Text
MsExcel.Range("D2").Value = TextBox4.Text
MsExcel.Visible = True
End Sub
seriously need help here....:(