colors and countif follow

  • Thread starter Thread starter nyn04
  • Start date Start date
N

nyn04

two issues, this in regrad to an earlier post today..

MsgBox WorksheetFunction(Range("TradesDiff"), "<0")

I run this and I get nothing

any ideas

my variable is defined as

Dim tradesDiff ()]

m = 300

Redim (m)
I am new to vba, when I put the values in excel cells I can then ru
the countif on the excel sheet but I need to avoid that, my values ru
from 17 to 40

2. how will I set backround and letter colors from vba to a cell

thank yo
 
First point - see my response to previous question.

Second point

Cells(1,4).Interior.ColorIndex = 3

Cells(1,4).Font.Colorindex = 3

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top