A One-liner

T

T De Villiers

Hi I think there is something wrong with "For Each wks In
ActiveWorkbook",
any help is much appreciated.


Sub taz()

Dim wks As Worksheet
Dim ActiveWorkbook As Workbook
For Each wks In ActiveWorkbook

If Cells(3, 1) = "taz" Then
Cells.Font.Bold = True

End If
Next wks
End Sub
 
N

Norman Jones

Hi T,

Try replacing:
Dim wks As Worksheet
Dim ActiveWorkbook As Workbook
For Each wks In ActiveWorkbook

with:

Dim wks As Worksheet

For Each wks In ActiveWorkbook.Worksheets


---
Regards,
Norman


"T De Villiers" <[email protected]>
wrote in message
 

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

Top