Getting the above run time error while executing the code second time. First time it is executing successfully. I have attached the code to which it points when I go to Debug mode. Please help to resolve this issue. Code:-
wbExcel.Worksheets("No of risks per user").Activate
wbExcel.ActiveSheet.UnProtect Password:="pwd1"
wbExcel.ActiveSheet.Columns("M:M").Select
Selection.EntireColumn.Hidden = False ' It points to this line in debug mode
Selection.RemoveDuplicates Columns:=1, Header:=xlYes
Selection.EntireColumn.Hidden = True