LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default Conditional Formatting Character length

Hi John,
I must have been doing something silly when I put that code together.
Target.PasteSpecial Paste:= xlPasteFormats does only paste the format
of A1 without pasting the value.
This means that the code need only be...

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
On Error GoTo ERRORHANDLER
Range("A1").Copy
Target.PasteSpecial Paste:=xlPasteFormats
Application.CutCopyMode = False
Exit Sub

ERRORHANDLER:
With Application
.EnableEvents = True
.CutCopyMode = False
End With
End Sub

Ken Johnson

 
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 based on character count Rhonda H. Excel Worksheet Functions 1 September 3rd 09 12:25 AM
cell text length conditional formatting - Excel 2003 Manc Shaun Excel Discussion (Misc queries) 3 March 26th 09 11:58 AM
character length in data forms phdbd Excel Discussion (Misc queries) 0 October 11th 06 06:15 PM
assigning character length in a cell Audrey Excel Discussion (Misc queries) 4 July 30th 06 04:40 PM
length of character data Saravanan Excel Discussion (Misc queries) 2 December 19th 04 06:49 PM


All times are GMT +1. The time now is 02:12 AM.

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"