ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VBA command to move cursor (https://www.excelbanter.com/excel-discussion-misc-queries/260089-vba-command-move-cursor.html)

dhstein

VBA command to move cursor
 
Is there a VBA command to move the cursor up one row ? Thanks.

Don Guillett[_2_]

VBA command to move cursor
 
activecell.offset(-1).select

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"dhstein" wrote in message
...
Is there a VBA command to move the cursor up one row ? Thanks.



Gary''s Student

VBA command to move cursor
 
If you mean move the Activecell up one row, then:

Sub MoveUp()
ActiveCell.Offset(-1, 0).Select
End Sub

If you mean actually moving the mouse in VBA, then start he

http://msdn.microsoft.com/en-us/libr...48(VS.80).aspx

--
Gary''s Student - gsnu201001


"dhstein" wrote:

Is there a VBA command to move the cursor up one row ? Thanks.


dhstein

VBA command to move cursor
 
Thanks Gary and Don

"Gary''s Student" wrote:

If you mean move the Activecell up one row, then:

Sub MoveUp()
ActiveCell.Offset(-1, 0).Select
End Sub

If you mean actually moving the mouse in VBA, then start he

http://msdn.microsoft.com/en-us/libr...48(VS.80).aspx

--
Gary''s Student - gsnu201001


"dhstein" wrote:

Is there a VBA command to move the cursor up one row ? Thanks.



All times are GMT +1. The time now is 01:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com