LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Question on custom formating cell

Hi
see your other post. For your three conditions you could apply a custom
format without any macros

--
Regards
Frank Kabel
Frankfurt, Germany


Hi Frank,
Thanks again buddy!!I wish the same way too...But
probably what he is looking for is attaining genric functionality in
the sense......In a event macro I have to specify the column I want

to
change but is it possible to do it generically I mean not tying it to
one column or row and instead put the functionality in to work for

any
column/row and let the user choose which column he wants that format
in?Is it possible to do that?
This is what I currently have....So how I change it so that I need
not specify target.column and make it generic......

Private Sub Worksheet_Change(ByVal Target As Range)
Debug.Print "RUNNING"
If Target.Column = 5 Then
Application.EnableEvents = False
Select Case Target.Value
Case 1
Target.Value = "Read Only"
Case 2
Target.Value = "Assessor"
Case 3
Target.Value = "Reviewer"
End Select
Application.EnableEvents = True
End If

End Sub


---
Message posted from http://www.ExcelForum.com/


 
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
Custom formating Greg Excel Discussion (Misc queries) 3 May 23rd 10 11:26 AM
excel 2003 (11.8307.8221) SP3 - custom cell formatting question Bob Excel Worksheet Functions 2 January 15th 10 09:11 PM
Simple cell formating question Metafreak Excel Worksheet Functions 4 July 7th 08 05:06 AM
custom cell formating Lonnie Excel Worksheet Functions 10 January 31st 07 10:59 PM
custom formating a cell VDU Excel Worksheet Functions 2 November 22nd 06 09:00 AM


All times are GMT +1. The time now is 04:10 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"