Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conditional formatting via check box

Status
Not open for further replies.

vttech

Technical User
Jan 28, 2006
297
US
I have a userform called frmLeaveRequest that contains a check box named chkVac, I want to pass the conditional formatting of Bold, Red Font and a Border around the contents in Cell C9 in an Execl doc called LRForm.xls in worksheet LeaveRequested when chkVac equals true. How do I accomplish a task like that??


Newbie in search of knowledge
 
I used

Code:
Public sub ConditionalFormat()
Range("c9").Borders.Color = RGB(255, 0, 0)
Range("c9").Borders.Weight = xlThick

End sub

but know I don't know how to turn the cell back to it's orginal state. which was no formating. need a some hints, ideas thanks

Newbie in search of knowledge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top