View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Richard[_28_] Richard[_28_] is offline
external usenet poster
 
Posts: 6
Default Hide the DisplayPasteOptions

Hi all,

I am using the following code to ensure that a cell's format does not differ from the Color and
NumberFormat when there is a change (like a paste or copy). It works fine, but the #!@!?&%$ Paste
Options dialog (or whatever that cute pop-up is called) still shows up...how do I stop it?

With Application
.EnableEvents = False
.DisplayPasteOptions = False
With Target
.Interior.Color = ActiveCell.Offset(-1, 0).Interior.Color
.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)"
End With
.DisplayPasteOptions = True
.EnableEvents = True
End With


Thanks,

Richard