AFAIK there is no way to detect where the cursor is if it is between slides.

A workaround is to change the view and then change it back. The slide before the cursor is now selected

ActiveWindow.ViewType = ppViewOutline

ActiveWindow.ViewType = ppViewNormal