I have a vba code to sort some sheets automatically in the background. The vba works but when I use it, if I scroll around on the active sheet before selecting an input cell, the cell I think I have selected doesn't become active once the code has completed. Instead, the cell which would have been in that place on the original screen view is selected. Example: If A1 is the cell in the top left of the screen and I scroll to make AB11 in the top left cell. I then click to select AB11 but it doesn't select AB11 and instead selects A1. How do I correct the vba code to prevent this?
Solved by Z. H. in 23 mins