Hey everyone,
I would appreciate some help on using the sheet change event with scrolling. For instance, how would I Scroll to the target cell that triggered sheet change event.
One way to achieve is to use the following two lines
But on pressing enter over target cell upon change. it will scroll aswell which requires me to insert one more line like this
But what if the user used a down arrow key or up or left or right or tab key.
ActiveWindow.SmallScroll Down:=-1 this will work only with Enter key.
Help will be appreciated
thank you
I would appreciate some help on using the sheet change event with scrolling. For instance, how would I Scroll to the target cell that triggered sheet change event.
One way to achieve is to use the following two lines
Code:
ActiveWindow.ScrollRow = Selection.Row
ActiveWindow.ScrollColumn = Selection.Column
But on pressing enter over target cell upon change. it will scroll aswell which requires me to insert one more line like this
Code:
ActiveWindow.ScrollRow = Selection.Row
ActiveWindow.ScrollColumn = Selection.Column
ActiveWindow.SmallScroll Down:=-1
But what if the user used a down arrow key or up or left or right or tab key.
ActiveWindow.SmallScroll Down:=-1 this will work only with Enter key.
Help will be appreciated
thank you