Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do you move the selection one cell to the right in a macro

How do you move the selected cell in any direction from any arbitrary
position? I'm just using the VB editor.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How do you move the selection one cell to the right in a macro

See the Offset command. E.g.,

ActiveCell.Offset(0, 1).Select



"fder" wrote in message
...
How do you move the selected cell in any direction from any
arbitrary
position? I'm just using the VB editor.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do you move the selection one cell to the right in a macro


ActiveCell.Offset(Row, Column).Activate
EXAMPLES:
to move the active cell to the right one:
Activecell.Offset(0,1).Activate

to move it down one:
Activecell.Offset(1,0).Activate

to move it left 2 and up 3:
Activecell.Offset(-2,-3).Activate

fder Wrote:
How do you move the selected cell in any direction from any arbitrary
position? I'm just using the VB editor.



--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=541205

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do you move the selection one cell to the right in a macro


ActiveCell.Offset(Row, Column).Activate
EXAMPLES:
to move the active cell to the right one:
Activecell.Offset(0,1).Activate

to move it down one:
Activecell.Offset(1,0).Activate

to move it left 2 and up 3:
Activecell.Offset(-2,-3).Activate

fder Wrote:
How do you move the selected cell in any direction from any arbitrary
position? I'm just using the VB editor.



--
Ikaabod
------------------------------------------------------------------------
Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371
View this thread: http://www.excelforum.com/showthread...hreadid=541205

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I move to the first cell in the selection in Excel 07? Ruchir[_2_] Excel Worksheet Functions 7 October 31st 09 03:25 AM
Arrows move worksheet rather than cell selection, how fix? grenada49 Excel Worksheet Functions 3 May 17th 05 09:05 PM
Cell selection in a macro GatheringShadow[_2_] Excel Programming 0 October 21st 04 01:45 PM
Newbie - Move Selection one cell to right dpolkinhorn Excel Programming 4 September 3rd 04 07:38 PM
Move selection down one cell GB[_3_] Excel Programming 3 October 12th 03 02:47 PM


All times are GMT +1. The time now is 02:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"