Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Deactivate a cell

I have a user form that loads when certain cells are double-clicked. However,
when the user closes the form, the formula bar is still active and the user
has to hit return before they can move on to the next cell. How can I set it
up so that the cell is selected but the formula is not in active change mode
so the user has to hit return?



--
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Deactivate a cell

Paul,

Simply use

Cancel = True

as the line of your before-double-click event code after you load and show
the userform:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
Load UserForm1
UserForm1.Show
Cancel = True
End Sub

HTH,
Bernie
MS Excel MVP




"Paul" wrote in message
...
I have a user form that loads when certain cells are double-clicked.
However,
when the user closes the form, the formula bar is still active and the
user
has to hit return before they can move on to the next cell. How can I set
it
up so that the cell is selected but the formula is not in active change
mode
so the user has to hit return?



--
Paul



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deactivate Save As Alex.W Excel Discussion (Misc queries) 5 June 21st 07 11:58 AM
How can I deactivate conditional formatting if the cell is empty? Vahe Excel Discussion (Misc queries) 3 January 11th 07 09:11 PM
deactivate the get pivot formula when I link a cell to a pivot hwtradezheng New Users to Excel 1 January 4th 06 01:47 PM
Link - deactivate being sent to source when click on linked cell? snidely Excel Worksheet Functions 1 January 11th 05 02:11 AM
Deactivate autofill sowetoddid[_53_] Excel Programming 1 June 23rd 04 03:04 AM


All times are GMT +1. The time now is 05:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"