#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 156
Default Question

After, for example,

If Not Intersect(Target, Range("J1:J20")) Is Nothing Then

Do stuff

End if


.... the cell is left selected.

Is there any way to prevent this so the cell is left de-selected ?

If there's not - can someone tell me? Just waiting on this to finish
a project.

Thanks - Kirk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Question

Range("A1").Select ?

knut
"kirkm" skrev i melding
...
After, for example,

If Not Intersect(Target, Range("J1:J20")) Is Nothing Then

Do stuff

End if


... the cell is left selected.

Is there any way to prevent this so the cell is left de-selected ?

If there's not - can someone tell me? Just waiting on this to finish
a project.

Thanks - Kirk



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Question

Your code, as written, won't select any particular cell. If the selection is
being changed, then that occurs in the "Do Stuff" code, which you didn't
post. Look in that code for anything with a ".Select" or ".Activate" and
probably delete it.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"kirkm" wrote in message
...
After, for example,

If Not Intersect(Target, Range("J1:J20")) Is Nothing Then

Do stuff

End if


... the cell is left selected.

Is there any way to prevent this so the cell is left de-selected ?

If there's not - can someone tell me? Just waiting on this to finish
a project.

Thanks - Kirk



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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good davegb Excel Programming 1 May 6th 05 06:35 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 27th 05 07:46 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 23 April 23rd 05 09:26 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 22nd 05 03:30 PM


All times are GMT +1. The time now is 12:57 PM.

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

About Us

"It's about Microsoft Excel"