Hide the DisplayPasteOptions

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top