PC Review


Reply
Thread Tools Rate Thread

Closing a Cell When Excel goes Inactive

 
 
David C. Barber
Guest
Posts: n/a
 
      6th Mar 2007
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!


 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      6th Mar 2007
David,
Personally I not use your app if you decided when I should/should not be in
edit mode. I frequently leave Excel in edit mode, whilst checking something
in another app.
Forcing {Enter} will (probably) cause errors in formulae.
Forcing {ESC} will nullify any user input.

If this is for a COM addin, check if the menu item File>Open is enabled.

NickHK

"David C. Barber" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing a Cell When Excel goes Inactive David C. Barber Microsoft Excel Discussion 1 2nd Mar 2007 06:23 PM
closing Access if user is inactive for a period of time Paul Ponzelli Microsoft Access Form Coding 2 6th Mar 2005 12:22 AM
closing Access if user is inactive for a period of time Paul Ponzelli Microsoft Access 2 6th Mar 2005 12:22 AM
closing Access if user is inactive for a period of time Paul Ponzelli Microsoft Access VBA Modules 2 6th Mar 2005 12:22 AM
Closing an inactive workbook Michael Wise Microsoft Excel Programming 3 10th Mar 2004 03:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.