i know how to detect the data every minute already. now i transfer my data to excel. but how i can see the worksheet when the program is running? i just can saw my data after i close the program and open excel. if i open excel during program is runing, it requires may save the data in different name. but i just want to update the data each time i run the program only. my program is like this:
If you only want to see the Excel workbook opened by your program try:
x.visible = True
If you need to change data in your Excel workbook while your program is running you will need to modify your program to close the workbook after each update and then open it again before doing the next update.
You will NOT be able to keep the workbook open in read-write mode in both VB and Excel.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...