Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Capture paste from Office Clipboard

Hi,

A bit of background first

I have an event macro which I want to prevent from running if the user
paste some info from the office clipboard into a cell as it triggers
my events.

The below code works if the data is copied from one section of the
spreadsheet to another. Is there anyway to capture Ctrl + V using
select case?.

Select Case Application.CutCopyMode
Case Is = False
MsgBox "Not in Cut or Copy mode"
Case Is = xlCopy
MsgBox "In Copy mode"
Case Is = xlCut
MsgBox "In Cut mode"
End Select

FYI
I also looked at the on key event but didn't want to add a new module
to the workbook if I can avoid it
Application.OnKey "^v", "Macro1"

If I had to add a module I guess Chip site would be the best start??
http://www.cpearson.com/excel/vbe.aspx


Any suggestions of tips would be appreciated

Regards

VBA Noob

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Capture paste from Office Clipboard

Anyone got any suggestions ??

Danny

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
I can't paste from the office clipboard noofsquidis8 Excel Discussion (Misc queries) 7 June 25th 08 07:28 PM
Cannot paste between 2 excel spreadsheets w/o office clipboard ope bluecali Excel Discussion (Misc queries) 1 May 11th 07 01:13 PM
WHY IS THE OFFICE CLIPBOARD NOT LETTING ME COPY AND PASTE? FtWorthDave Excel Discussion (Misc queries) 3 February 13th 07 09:54 PM
Copy / Paste Function & the Office Clipboard Karen Excel Discussion (Misc queries) 2 February 17th 05 02:41 AM
Copy / Paste Function & the Office Clipboard Karen Excel Discussion (Misc queries) 0 February 16th 05 06:41 PM


All times are GMT +1. The time now is 05:58 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"