RESTRICT PASTING FORMATS

  • Thread starter Thread starter FARAZ QURESHI
  • Start date Start date
F

FARAZ QURESHI

What code may be applied with respect to only ONE sheet, upon which if any
data is pasted (either by Ctrl+V or Enter) only the values are pasted so as
to preserve the format and application of Conditional Formatting?
 
I don't know what you mean by 'code'. There is no cell format that
restricts a cell to being the recipient of pasted values only.

For a macro you might see if this holds water. Copy it into the sheet's
module (right click sheet tab and pick View Code):

Private Sub Worksheet_Change(ByVal Target As Range)
Dim Temp As Variant
Temp = Target.Formula
With Application
.EnableEvents = False
.Undo
Target.Formula = Temp
.EnableEvents = True
End With
End Sub

--
Jim
| What code may be applied with respect to only ONE sheet, upon which if any
| data is pasted (either by Ctrl+V or Enter) only the values are pasted so
as
| to preserve the format and application of Conditional Formatting?
|
| --
|
| Best Regards,
| FARAZ A. QURESHI
 

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