T Tom22 Member Nov 13, 2022 #1 Hi Guys, I am trying to add this code to work book but it is showing error that variable not defined at For each sheet in sheets line. Not able to solve this puzzle, can anyone plz help here? Attaching test file for reference. Thanks, Tom Attachments Test 1.xlsm Test 1.xlsm 12.9 KB · Views: 2
Hi Guys, I am trying to add this code to work book but it is showing error that variable not defined at For each sheet in sheets line. Not able to solve this puzzle, can anyone plz help here? Attaching test file for reference. Thanks, Tom
V vletm Excel Ninja Nov 13, 2022 #2 Tom22 As You're using text Option Explicit. You've to declare sheet variable. eg by writing Dim sheet before On Error Resume Next
Tom22 As You're using text Option Explicit. You've to declare sheet variable. eg by writing Dim sheet before On Error Resume Next