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 / New Users / March 2007

Tip: Looking for answers? Try searching our database.

Closing a Cell When Excel goes Inactive

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David C. Barber - 02 Mar 2007 06:31 GMT
Excel 2000.  I want to be able to close off the data entry/editing on a cell
when the user switches to another application.  The reason for this is that
while the cell remains open for editing I cannot remotely execute save and
close macros from an external application.  While I know I can close editing
on a cell with SENDKEYS {ENTER}, among other things, I'm unable to find an
event the reliably fires when the user switches from Excel to another
application.  So what I'd like is:

1: An event to use in my spreadsheet VBA code that will fire each time the
Excel application goes inactive.

2: A better way to close editing on a cell, of something better than
Sendkeys exists.

3: Optional: A property or method call that will let me know when the user
currently has the cell open for data entry/editing.

Thanks!
CLR - 02 Mar 2007 18:23 GMT
Maybe this........

Private Sub Workbook_WindowDeactivate(ByVal Wn As Excel.Window)
YourCodeHere
End Sub

Vaya con Dios,
Chuck, CABGx3

> Excel 2000.  I want to be able to close off the data entry/editing on a cell
> when the user switches to another application.  The reason for this is that
[quoted text clipped - 14 lines]
>
> Thanks!
 
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.