PC Review


Reply
Thread Tools Rate Thread

Disable paste option in worksheet.

 
 
Heera
Guest
Posts: n/a
 
      23rd Dec 2008
Hi,

I have a column where I have applied validation for dates but when
someone uses the paste option then
the validation is of no use.

I want a macro which will not allow the user to paste anything in a
particular column. The user has to enter the date without using the
copy paste option.

Basically i want to disable the paste option in a particular range.

Regards
Heera
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      23rd Dec 2008
One way:

Unlock (Format/Cells/Protection) any cells that you want the user to be
able to type or paste into, then choose Tools/Protection/Protect
Worksheet.

A macro won't prevent a paste since no event will be fired until after
the paste is accomplished.

You *could* use an event macro (Worksheet_Change) to reapply validation
if it was removed by a paste, but you'll then have to deal with deciding
which value to insert (or use another event to store the value).


In article
<b487a04f-3bfb-49fc-a7ff-(E-Mail Removed)>,
Heera <(E-Mail Removed)> wrote:

> Hi,
>
> I have a column where I have applied validation for dates but when
> someone uses the paste option then
> the validation is of no use.
>
> I want a macro which will not allow the user to paste anything in a
> particular column. The user has to enter the date without using the
> copy paste option.
>
> Basically i want to disable the paste option in a particular range.
>
> Regards
> Heera

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable print option of a worksheet/workbook =?Utf-8?B?TmVsbHkwNw==?= Microsoft Excel Misc 0 23rd Oct 2007 10:19 PM
Disable copy paste option on a particular cell Dileep Chandran Microsoft Excel Worksheet Functions 0 13th Nov 2006 05:28 AM
how can i enable or disable the paste option in excel 2000 =?Utf-8?B?bWlhbm1pYW4=?= Microsoft Excel Worksheet Functions 0 2nd Sep 2005 09:57 AM
How do I disable cut and paste in protected unlocked worksheet =?Utf-8?B?T0hERUFSTUU=?= Microsoft Excel Worksheet Functions 0 7th Feb 2005 09:55 PM
Code to disable "paste" as an option Jonsson Microsoft Excel Programming 7 21st Jun 2004 09:33 PM


Features
 

Advertising
 

Newsgroups
 


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