Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default Cell Formatting

unprotect it then

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
validCell = False
Me.Unprotect
For Each cell In Target.Cells
Target.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone
Next cell
Me.Protect
End Sub



--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Student" wrote in message
...
I am sorry but is not working (By the way the sheet is protected)

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
validCell = False
For Each cell In Target.Cells
Target.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone
Next cell
End Sub



"John Bundy" wrote:

If you are copying then I am assuming you are pasting, match destination
formatting should fix you. This should cover it:

Range("A10").Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
--
-John
Please rate when your question is answered to help us and others know
what
is helpful.


"Student" wrote:

Good Morning!
here is the issue
I have formatted my sheet to be text but everytime I copy from a word
document the format changes to General.

is there a way that I could hard code the trigered cell to stay in Text
fromat?

please advise your help is greatly appreciated...Thank you



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
Conditional formatting--different formatting depending on cell con Tammy S. Excel Discussion (Misc queries) 3 March 30th 09 08:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM


All times are GMT +1. The time now is 11:07 AM.

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

About Us

"It's about Microsoft Excel"