Conditional Formatting and Spreadsheet Control?

threearabawys

New Member
Joined
Nov 23, 2014
Messages
34
Hello :)

I have a sheet with some conditional formatting which is going to be running in the background of a user form... On the user form I have a spreadsheet control which I need to populate with values from the worksheet.

I there a way I can do so and as well as keep the conditional formatting?
I really need that formatting on the spreadsheet control...

If there's a way to do conditional formatting on the spreadsheet control itself that would be great as well.


Thanks in advance :)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Ok so I came up with this code in the

If Me.Spreadsheet1.Range("A8").Value = "1" Then
Me.Spreadsheet1.Range("A8").Interior.Color = RGB(0, 0, 255)
Me.Spreadsheet1.Range("A8").Font.Color = RGB(0, 0, 255)
ElseIf Me.Spreadsheet1.Range("A8").Value = "0" Then
Me.Spreadsheet1.Range("A8").Interior.Color = RGB(255, 0, 0)
Me.Spreadsheet1.Range("A8").Font.Color = RGB(255, 0, 0)
End If

It works for the first cell, but I have no Idea how to make this work for the entire row.. Any Ideas?
 
Upvote 0

Forum statistics

Threads
1,217,373
Messages
6,136,185
Members
449,997
Latest member
satyam7054

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top