P
Philip Stromme
I am trying to create a bowling score sheet, but I'm having trouble because
"/" activates the file menu, when I want to use to indicate a spare.
I want to create some code that will automatically change the transition
menu key when I open the file, and change it back when I close the file.
I found some code on Microsoft TechNet, at
http://www.microsoft.com/technet/scriptcenter/topics/office/manage/exceltr.mspx
and I put it under Workbook_Open. I'm getting "Variable not defined" errors,
but I'm not sure how I should define them. Any thoughts?
Option Explicit
Private Sub Workbook_Open()
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Add()
Set objWorksheet = objWorkbook.Worksheets(1)
objExcel.TransitionMenuKey = ""
objExcel.Quit
End Sub
"/" activates the file menu, when I want to use to indicate a spare.
I want to create some code that will automatically change the transition
menu key when I open the file, and change it back when I close the file.
I found some code on Microsoft TechNet, at
http://www.microsoft.com/technet/scriptcenter/topics/office/manage/exceltr.mspx
and I put it under Workbook_Open. I'm getting "Variable not defined" errors,
but I'm not sure how I should define them. Any thoughts?
Option Explicit
Private Sub Workbook_Open()
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Add()
Set objWorksheet = objWorkbook.Worksheets(1)
objExcel.TransitionMenuKey = ""
objExcel.Quit
End Sub