The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. Microsoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The SetCursorPos function can be used in a looping structure to move the cursor across the screen. You can also use another function SetCursorPos to set the cursor position. However, you can use the Declare statement in a Microsoft Excel Visual Basic for Applications macro to call a Microsoft Windows function to access the current position. ![]() Microsoft Excel does not have the built-in functionality to get or set the cursor position. The current position can be obtained by using the GetCursorPos function in USER32.DLL. ![]() You can make a Windows API (application programming interface) call to a Microsoft Windows DLL (dynamic-link Library) to get and set the current cursor position.
0 Comments
Leave a Reply. |