Marc Vanzegbroeck wrote:Hi,
I know how to create,open, edit and save an excel-sheet.
But is it possible to select a sheet that is already open?
I want to press a button, and than select the excell-sheet (in case if more than 1 sheet is open) that the program have to modify/use.
Thanks
oSheet:= oExcel:WorkSheets(<cNameSheet>)
hmpaquito wrote:
- Code: Select all Expand view
oSheet:= oExcel:WorkSheets(<cNameSheet>) // Now oSheet == oExcel:ActiveSheet()
What I want to do is:
- Press a button in my programm
The program wait till I select the sheet of the excellbook that I want to use (because more than 1 excell-books can be open)
After selecting the sheet I want to use, the program use that sheet, and get the information of that sheet
oExcel = CREATEOBJECT( "Excel.Application" )
oSheet:= oExcel:WorkSheets('MYPAGE')
oExcel := ExcelObj()
oCell := oExcel:ActiveCell
if oCell != nil
? oCell:Value
? oCell:Address
? oCell:Row
? oCell:Column
endif
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 32 guests