Could you show me an example where you click a button, it a number from a text box and puts it into to column A and the next available row.
VB Code:
Dim objExcel As New Excel.Application objExcel.Visible = True objExcel.Workbooks.Add() objExcel.Range("A1").Select() objExcel.ActiveCell.FormulaR1C1 = "75" objExcel.Range("B1").Select() objExcel.ActiveCell.FormulaR1C1 = "125" objExcel.Range("C1").Select() objExcel.ActiveCell.FormulaR1C1 = "255" objExcel.Range("D1").Select() objExcel.ActiveCell.FormulaR1C1 = "295" objExcel = Nothing
I have leant ho to do this with a book I have, but what I want to do is open an existing excel file and add to it. It would be a great help if you can give me a very simple example.
Sam




Reply With Quote