ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to disengage the F9 key - Workbook_Open? (https://www.excelbanter.com/excel-programming/329467-how-disengage-f9-key-workbook_open.html)

Arturo

How to disengage the F9 key - Workbook_Open?
 
This preps the file as desired:

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

Where would I find the syntax to disengage the F9 key too?

Thank you,
Arturo

Tom Ogilvy

How to disengage the F9 key - Workbook_Open?
 
Look at excel vba help for the onkey function.

--
Regards,
Tom Ogilvy



"Arturo" wrote in message
...
This preps the file as desired:

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

Where would I find the syntax to disengage the F9 key too?

Thank you,
Arturo




Arturo

How to disengage the F9 key - Workbook_Open?
 
Thank you once again Tom...

Sub testOFF()
Application.OnKey "{F9}", ""
End Sub

Sub testON()
Application.OnKey "{F9}"
End Sub


"Tom Ogilvy" wrote:

Look at excel vba help for the onkey function.

--
Regards,
Tom Ogilvy



"Arturo" wrote in message
...
This preps the file as desired:

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

Where would I find the syntax to disengage the F9 key too?

Thank you,
Arturo





SKRS

How to disengage the F9 key - Workbook_Open?
 
hey thr,
where do you invoked testOFF/ON from??

i've somethin like below

Private Sub Workbook_Open()
MsgBox "open"
Application.OnKey "{~}", "EnterKey"
End Sub
Sub EnterKey()
MsgBox "enter key"
Call ActiveCell.Offset(ActiveSheet.Target.Row + 1,
ActiveSheet.Target.Column)
End Sub

in the above code, enterkey is not being invoked. where should the
application.onKey assignment be done.

appreciate your inputs.

thanks


"Arturo" wrote:

Thank you once again Tom...

Sub testOFF()
Application.OnKey "{F9}", ""
End Sub

Sub testON()
Application.OnKey "{F9}"
End Sub


"Tom Ogilvy" wrote:

Look at excel vba help for the onkey function.

--
Regards,
Tom Ogilvy



"Arturo" wrote in message
...
This preps the file as desired:

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

Where would I find the syntax to disengage the F9 key too?

Thank you,
Arturo





SKRS

How to disengage the F9 key - Workbook_Open?
 
but where from testOFF/testON are invoked??


"Arturo" wrote:

Thank you once again Tom...

Sub testOFF()
Application.OnKey "{F9}", ""
End Sub

Sub testON()
Application.OnKey "{F9}"
End Sub


"Tom Ogilvy" wrote:

Look at excel vba help for the onkey function.

--
Regards,
Tom Ogilvy



"Arturo" wrote in message
...
This preps the file as desired:

Private Sub Workbook_Open()
Application.Calculation = xlCalculationManual
End Sub

Where would I find the syntax to disengage the F9 key too?

Thank you,
Arturo






All times are GMT +1. The time now is 02:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com