PDA

View Full Version : Button Action


joebuck0220
08-16-2004, 03:55 PM
Is there a way to make a button open up an excel document and make it go to a certain page? Please any info will help!

joebuck0220
08-16-2004, 06:04 PM
thanx that helps

Worm
08-16-2004, 06:38 PM
Try this:


--Create a ExcleApp object
oExcelApp=luacom.CreateObject("Excel.Application")
--Create a Document Object
oXLS=luacom.CreateObject("Excel.Document")

--Make the ExcelApp visible
oExcelApp.Visible = true;

--Open Excel Document
oXLS=oExcelApp.Workbooks:Open(_SourceFolder.."\\MyExcelWorkBook.xls")

--Select the WorkBook
oExcelApp.WorkBooks( nil, 1).Activate(nil)

--Jump to the Worksheet
oExcelApp.ActiveWorkbook.Sheets(nil,"Sheet Name").Select(nil)

Worm
08-17-2004, 12:28 PM
Why, Thank You... I think!?

:p :D :)

You're just too bad ass, Worm...



...just too bad ass