Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello excel users,
A copy and paste actions invokes a Worksheet_Change event which is fine. Is it possible to detect that the user performs a copy and paste action? For example the Worksheet_Change event can look something like this in pseudocode: ********** Private Sub Worksheet_Change(ByVal Target As Range) If User entered data Then Debug.Print "You entered data in a cell" ElseIf user performs a copy and paste Then Debug.Print "You did a copy and paste" ElseIf User deleted the contents of a cell Then Debug.Print "You deleted the contents" End If end sub ********** Thanks in advance Bret |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You cannot tell within Worksheet_Change whether the user pasted an entry in
versus typing it in, as far as I know. You're concerned about your formats getting blown away? -- Jim "Bret Bernever" wrote in message ... | Hello excel users, | | A copy and paste actions invokes a Worksheet_Change event which is fine. | | Is it possible to detect that the user performs a copy and paste action? | | | For example the Worksheet_Change event can look something like this in | pseudocode: | | ********** | Private Sub Worksheet_Change(ByVal Target As Range) | | If User entered data Then | Debug.Print "You entered data in a cell" | ElseIf user performs a copy and paste Then | Debug.Print "You did a copy and paste" | ElseIf User deleted the contents of a cell Then | Debug.Print "You deleted the contents" | End If | | end sub | ********** | | Thanks in advance | Bret |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excell copy action pauses for 15 second for the smallest action | Excel Discussion (Misc queries) | |||
protecting ceels to copy -paste action | Excel Worksheet Functions | |||
protecting ceels to copy -paste action | New Users to Excel | |||
protecting ceels to copy -paste action | Excel Discussion (Misc queries) | |||
How do I capture user paste action and convert to Paste Special | Excel Programming |