Jump to content

Excel: Koşullu Biçimlendirme


KintaRo
 Share

Recommended Posts

Yanyana 4 Hücremiz var. 4. hücreye 1 yazdığımda bu 4 hücreninde sarıya boyanmasını istiyorum yada 4'ününde üstü çizilsin. Eğer bu mümkünse bir örnek verirseniz sevinirim. Alttaki resimdeki gibi olacak:

[b]öncesi:[/b]

[img]http://i.imgur.com/WI6bZ.png[/img]

[b]sonrası:[/b]

[img]http://i.imgur.com/lF9SA.png[/img]
Link to comment
Share on other sites

  • Administrator

Bunu Sayfa1'in koduna yaz. Else'deki rengi değiştirirsin artık


[code]Private Sub Worksheet_Change(ByVal Target As Range)


If Sayfa1.Cells(1, 4) = 1 Then


Range("A1:D1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With


Else

Range("A1:D1").Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 30000
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End If
End Sub
[/code]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...