Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 553
Default RESTRICT PASTING FORMATS

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 533
Default RESTRICT PASTING FORMATS

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
"FARAZ QURESHI" wrote in message
...
| 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
holding worksheet formats when copying/pasting hsyrddy Excel Discussion (Misc queries) 2 November 28th 07 09:59 PM
pasting links and formats prakash Excel Discussion (Misc queries) 2 August 28th 06 12:00 PM
Formats when cutting and pasting Kayle Z Excel Discussion (Misc queries) 1 February 9th 06 03:57 AM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
Pasting numbers and formulas without pasting format. Dan Excel Discussion (Misc queries) 3 March 27th 05 03:47 AM


All times are GMT +1. The time now is 05:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"