Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Selection Change Event

I have added an Selection Change Event in my workbook. However, problem is
found when I perform copy and paste. The data is "lost" (the "Paste" is in
light grey) after I has right clicked another cell. Any solution for this?
Thanks in advance for any help!

Pat


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Selection Change Event

Post the code for the selection change.


"pwz" wrote in message
...
I have added an Selection Change Event in my workbook. However, problem is
found when I perform copy and paste. The data is "lost" (the "Paste" is in
light grey) after I has right clicked another cell. Any solution for this?
Thanks in advance for any help!

Pat



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Selection Change Event

Here it is:

Private Sub App_SheetCalculate(ByVal Sh As Object)
If Sh.AutoFilterMode Then macroA
End Sub


"JLGWhiz" wrote in message
...
Post the code for the selection change.


"pwz" wrote in message
...
I have added an Selection Change Event in my workbook. However, problem is
found when I perform copy and paste. The data is "lost" (the "Paste" is in
light grey) after I has right clicked another cell. Any solution for this?
Thanks in advance for any help!

Pat




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Selection Change Event

It should be this one:

Private Sub App_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA

End Sub
"JLGWhiz" wrote in message
...
Post the code for the selection change.


"pwz" wrote in message
...
I have added an Selection Change Event in my workbook. However, problem is
found when I perform copy and paste. The data is "lost" (the "Paste" is in
light grey) after I has right clicked another cell. Any solution for this?
Thanks in advance for any help!

Pat




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Selection Change Event

You may want to post your selectionchange code.
--
HTH,

Barb Reinhardt



"pwz" wrote:

I have added an Selection Change Event in my workbook. However, problem is
found when I perform copy and paste. The data is "lost" (the "Paste" is in
light grey) after I has right clicked another cell. Any solution for this?
Thanks in advance for any help!

Pat


.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Selection Change Event

Here it is:

Private Sub App_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA

Thanks!


"Barb Reinhardt" wrote in message
...
You may want to post your selectionchange code.
--
HTH,

Barb Reinhardt



"pwz" wrote:

I have added an Selection Change Event in my workbook. However, problem
is
found when I perform copy and paste. The data is "lost" (the "Paste" is
in
light grey) after I has right clicked another cell. Any solution for
this?
Thanks in advance for any help!

Pat


.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Selection Change Event

Here it is:

Private Sub App_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA (to change a cell content)

Thanks!


"Barb Reinhardt" wrote in message
...
You may want to post your selectionchange code.
--
HTH,

Barb Reinhardt



"pwz" wrote:

I have added an Selection Change Event in my workbook. However, problem
is
found when I perform copy and paste. The data is "lost" (the "Paste" is
in
light grey) after I has right clicked another cell. Any solution for
this?
Thanks in advance for any help!

Pat


.




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Selection Change Event

It appears that you are trying to run a workbook defined event from the
application level. I am not familiar with that technique, and am not sure
that Excel accepts that as valid event code for the SheetSelectionChange
event. I would normally write the code as

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA (to change a cell content)


"pwz" wrote in message
...
Here it is:

Private Sub App_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA (to change a cell content)

Thanks!


"Barb Reinhardt" wrote in
message
...
You may want to post your selectionchange code.
--
HTH,

Barb Reinhardt



"pwz" wrote:

I have added an Selection Change Event in my workbook. However, problem
is
found when I perform copy and paste. The data is "lost" (the "Paste" is
in
light grey) after I has right clicked another cell. Any solution for
this?
Thanks in advance for any help!

Pat


.






  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Selection Change Event

Also, the code must be in the ThisWorkbook code module for it to execute
properly on event.



"JLGWhiz" wrote in message
...
It appears that you are trying to run a workbook defined event from the
application level. I am not familiar with that technique, and am not sure
that Excel accepts that as valid event code for the SheetSelectionChange
event. I would normally write the code as

Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA (to change a cell content)


"pwz" wrote in message
...
Here it is:

Private Sub App_SheetSelectionChange(ByVal Sh As Object, _
ByVal Target As Excel.Range)
If Sh.AutoFilterMode Then MacroA (to change a cell content)

Thanks!


"Barb Reinhardt" wrote in
message
...
You may want to post your selectionchange code.
--
HTH,

Barb Reinhardt



"pwz" wrote:

I have added an Selection Change Event in my workbook. However, problem
is
found when I perform copy and paste. The data is "lost" (the "Paste" is
in
light grey) after I has right clicked another cell. Any solution for
this?
Thanks in advance for any help!

Pat


.








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
BeforeRightClick event vs. Selection Change DennisB[_2_] Excel Programming 2 October 28th 08 09:26 PM
Selection Change Event Pflugs Excel Programming 2 June 23rd 06 01:44 PM
Selection Change Event Jim Thomlinson[_3_] Excel Programming 0 April 28th 05 05:36 PM
Selection Change Event Jim Thomlinson[_3_] Excel Programming 3 April 28th 05 10:01 AM
Selection Change Event... Juan Sanchez Excel Programming 1 May 28th 04 10:16 PM


All times are GMT +1. The time now is 04:15 AM.

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"