Hi,
I have moved a section of coding from the sheet1 module to just a module.
(I want to try and tidy my coding).
The code was working fine in the sheet module but now I have moved it, it comes up with this 91 error.
I am fairly sure it is to do with the sheet name or the "activesheet" part but I can't figure out how to sort it.
This is the part it is highlighting:
Please can someone help me and any help would be much appreciated.
Regards
Dan
I have moved a section of coding from the sheet1 module to just a module.
(I want to try and tidy my coding).
The code was working fine in the sheet module but now I have moved it, it comes up with this 91 error.
I am fairly sure it is to do with the sheet name or the "activesheet" part but I can't figure out how to sort it.
This is the part it is highlighting:
Code:
sValueA = Trim(ActiveSheet.Cells(target.Row, "A").Value)
Please can someone help me and any help would be much appreciated.
Regards
Dan