Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jmp jmp is offline
external usenet poster
 
Posts: 1
Default VBA: move to the next cell down from anywhere in the sheet


I am deleting rows based on a value in a column (< 16) and if the value
is 16 or greater I want to move down to the next row and check that
value and so on. i am using a Do Until value = "".

What is the code for moving down to the next cell below ActiveCell?


--
jmp
------------------------------------------------------------------------
jmp's Profile: http://www.excelforum.com/member.php...o&userid=29038
View this thread: http://www.excelforum.com/showthread...hreadid=487763

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA: move to the next cell down from anywhere in the sheet


Hello Jmp,

ActiveCell.Offset(1, 0l).Select will select the next cell down from th
active cell. Here are some other examples of the Offset property
Movement is relative to the current cell. Rows move up if the Row i
negative and down if positive. Columns move left if the negative an
right if positive. The starting point is (0,0).

Move Down a Row, same Column use:
ActiveCell.Offset(1, 0)

Move Up a Row, same Column:
ActiveCell.Offset(-1, 0)

Move to Next Column, same Row:
ActiveCell.Offset(0, 1)

Move to Previous Coulmn, same Row:
ActiveCell.Offset(0, -1)

Sincerely,
Leith Ros

--
Leith Ros
-----------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...fo&userid=1846
View this thread: http://www.excelforum.com/showthread.php?threadid=48776

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
Excel - arrow keys move whole sheet instead of from cell to cell BR Prod Excel Discussion (Misc queries) 3 January 19th 06 01:31 AM
VBA: move to the next cell down from anywhere in the sheet jmp Excel Discussion (Misc queries) 1 November 24th 05 01:11 AM
Excell:Move from any Cell Sheet 1 to any cell Sheet 2 etc. eldo Excel Worksheet Functions 1 August 16th 05 09:17 AM
arrow keys move entire sheet instead of cell to cell gbeard Excel Worksheet Functions 2 April 13th 05 04:59 PM
Move Copy sheet with cell having more than 255 characters Ajit Excel Programming 0 November 5th 04 07:56 PM


All times are GMT +1. The time now is 01:48 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"