Formatting problem...

  • Thread starter Thread starter mjack003
  • Start date Start date
M

mjack003

Hi,

I need to create a macro which will format F16-F500 as red text on al
selected sheets. Thanks in advance.

Regards,
Mjac
 
Hi Mjack
try
'-----
Public Sub format_cells()
Dim wkSht As Worksheet
For Each wkSht In ActiveWindow.SelectedSheets
wkSht.Range("F16:F500").Font.ColorIndex = 3
Next wkSht
End Sub
'-----

Frank
 
For Each sh In ActiveWorkbook.Worksheets
sh.Range("F16:F500").Font.ColorIndex = 3
Next sh

--

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

Similar Threads


Back
Top