Answer Posted / sugnaya
place two textbox and commandbuttons in design window
and copy this code in code window
-----------------------
Dim xl As New Excel.Application
Dim xlsheet As Excel.Worksheet
Dim xlwbook As New Excel.Workbook
Private Sub Command1_Click()
Text1.Text = xlsheet.Cells(2, 1)
Text2.Text = xlsheet.Cells(2, 2)
End Sub
Private Sub Command2_Click()
xlsheet.Cells(21, 1) = Text1.Text
xlsheet.Cells(21, 2) = Text2.Text
xlwbook.Save
End Sub
Private Sub Form_Load()
Set xlwbook = xl.Workbooks.Open("C:\Documents and
Settings\bct20vb\My Documents\sa.xls")
Set xlsheet = xlwbook.Sheets.Item(1)
End Sub
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
what is the Difference between Tabletype and Snapshot?
What is the use of Immediate, Local Window?
___ Property is used to count no. of items in a combobox.
Which method is used to write context Into file?
What is Seek Method which type of record set is available this?
What is the use of Data Form Wizard?
What is script control?
What are the tools in visual basic?
What is vbs file?
Are there any examples of commercial applications built using Visual Basic?
What do you know about user forms.
Difference between Dynaset and Snapshot?
how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?
___,___ and __ are difference between image and picture controls.
What is difference between datagrid and flexgrid?