Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Seo Services company Manchester

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 10-14-2005, 02:15 PM
dlh dlh is offline
Forum Contributor
 
Join Date: 09 Aug 2005
MS Office Version:2003 & 2007
Posts: 103
dlh has been very helpful
Paste event

Please Register to Remove these Ads

Is there a way to capture the event of Pasting (or Dragging and Dropping) something into a worksheet? I'd like to intercept such events and make sure that only values are pasted, so the user doesn't inadvertently muck up the formatting of the worksheet.

Or would it be better to write a macro to restore the original formatting after the fact? (That would be long and tedius.)

I've found a BeforeDropOrPaste event, but I can't find any examples of how to use it and it seems rather nontrivial.

-dlh
Reply With Quote
  #2  
Old 10-14-2005, 05:05 PM
Vacation's Over
Guest
 
Posts: n/a
RE: Paste event

http://www.cpearson.com/excel/events.htm


"dlh" wrote:

>
> Is there a way to capture the event of Pasting (or Dragging and
> Dropping) something into a worksheet? I'd like to intercept such
> events and make sure that only values are pasted, so the user doesn't
> inadvertently muck up the formatting of the worksheet.
>
> Or would it be better to write a macro to restore the original
> formatting after the fact? (That would be long and tedius.)
>
> I've found a BeforeDropOrPaste event, but I can't find any examples of
> how to use it and it seems rather nontrivial.
>
> -dlh
>
>
> --
> dlh
> ------------------------------------------------------------------------
> dlh's Profile: http://www.excelforum.com/member.php...o&userid=26113
> View this thread: http://www.excelforum.com/showthread...hreadid=476339
>
>

Reply With Quote
  #3  
Old 10-14-2005, 05:25 PM
dlh dlh is offline
Forum Contributor
 
Join Date: 09 Aug 2005
MS Office Version:2003 & 2007
Posts: 103
dlh has been very helpful
Thanks for the link, but Chip Pearson's site doesn't cover the BeforeDropOrPaste event.

Or is there some other event that I should be capturing?

-dlh
Reply With Quote
  #4  
Old 10-14-2005, 10:05 PM
Tom Ogilvy
Guest
 
Posts: n/a
Re: Paste event

that event is from the MSFORMS library, not the Excel library. Therefore it
has nothing to do with Excel events.

--
Regards,
Tom Ogilvy

"dlh" <dlh.1wwx2a_1129327517.2995@excelforum-nospam.com> wrote in message
news:dlh.1wwx2a_1129327517.2995@excelforum-nospam.com...
>
> Thanks for the link, but Chip Pearson's site doesn't cover the
> BeforeDropOrPaste event.
>
> Or is there some other event that I should be capturing?
>
> -dlh
>
>
> --
> dlh
> ------------------------------------------------------------------------
> dlh's Profile:

http://www.excelforum.com/member.php...o&userid=26113
> View this thread: http://www.excelforum.com/showthread...hreadid=476339
>



Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump