Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / February 2006

Tip: Looking for answers? Try searching our database.

How to disengage the F9 key - Workbook_Open?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arturo - 16 May 2005 18:30 GMT
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 - 16 May 2005 18:49 GMT
Look at excel vba help for the onkey function.

Signature

Regards,
Tom Ogilvy

> This preps the file as desired:
>
[quoted text clipped - 6 lines]
> Thank you,
> Arturo
Arturo - 16 May 2005 19:02 GMT
Thank you once again Tom...

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

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

> Look at excel vba help for the onkey function.
>
[quoted text clipped - 8 lines]
> > Thank you,
> > Arturo
SKRS - 21 Feb 2006 14:10 GMT
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

> Thank you once again Tom...
>
[quoted text clipped - 18 lines]
> > > Thank you,
> > > Arturo
SKRS - 21 Feb 2006 14:10 GMT
but where from testOFF/testON are invoked??

> Thank you once again Tom...
>
[quoted text clipped - 18 lines]
> > > Thank you,
> > > Arturo
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.