• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to change the format of a given range?

inddon

Member
Hello There,

I have the below code which makes the colour of the cell to Automatic, only when the cell or range is selected

Code:
Range("DNumberOK").Select
With Selection.Font                              'Make Font Green
         .ColorIndex = -16776961
         .TintAndShade = 0
       End With

I would like to give the name of the range instead, as below code, so I don't have to select individual cells. Is this possible?

I tried something below, which doesn't work

Code:
With Range("DNumberOK").Selection.Font   'Make Font Green
         .ColorIndex = -16776961
         .TintAndShade = 0
       End With


Thanks & regards,
Don
 
Back
Top