i am working on a vb program to enter information into an excel worksheet...
i have a function to retrieve a value from a specific cell
GetCellValue(strCellAddress)
and a subroutine to ENTER a value into a specific cell
PutCellValue(strCellAddress,strCellValue)
but i am having problems
how do i instantiate the worksheet? i have the workbook name and worksheet name as global variables w/in the project
dim goExcel as excel.application
dim goBook as excel.workbook
dim goSheet as excel.worksheet
set gosheet = new gobook(strfilename).worksheet(strWorksheetname)
it doesn't accept any of this at all?
any suggestions would be greatly appreciated
i have a function to retrieve a value from a specific cell
GetCellValue(strCellAddress)
and a subroutine to ENTER a value into a specific cell
PutCellValue(strCellAddress,strCellValue)
but i am having problems
how do i instantiate the worksheet? i have the workbook name and worksheet name as global variables w/in the project
dim goExcel as excel.application
dim goBook as excel.workbook
dim goSheet as excel.worksheet
set gosheet = new gobook(strfilename).worksheet(strWorksheetname)
it doesn't accept any of this at all?
any suggestions would be greatly appreciated