suryagoel,
I'm not a VBA wiz, but I've noticed a few things:
you differentiate between
and
You could do away with the first part of the IF statement, because the Else takes care of the situation even if there is only one cell in Target.
If you want to loop through all sheets in the workbook, I'm not sure you can use Target, since that is particular to the Worksheet_Change event of the current sheet.
You'd need some other way of identifying the cells that you want to apply the format to.
I wonder if the Worksheet_Change event is the right trigger for this operation in the first place, with regards to checking through all other sheets in the workbook.
Maybe you can post a sample file and explain in context what you want to do.
As an alternative to ajaykgarg's code to loop through all sheets in a workbook, you can use
cheers
Bookmarks