Thread: If Condition
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
[email protected] nhims786@gmail.com is offline
external usenet poster
 
Posts: 3
Default If Condition

Thank you Sir for your response. Its working fine with a single sheet but when I changed it to to the whole workbook by replacing

Private Sub Worksheet_Change(ByVal Target As Range)

with

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)

its not working for the other sheets in the workbook. Do I need to make any other changes in the function to make it work?