Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Move active cell?

How do I move the active cell in a range inside a loop?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Move active cell?

On 25 Jul, 13:58, "Kent McPherson" wrote:
How do I move the active cell in a range inside a loop?


Hi Kent

You could use:

Dim cell as Range
Dim myRange as Range

For Each cell in myRange
cell.select
DoMyProcess
Next

Note that you don't actually need to select a cell in order to
interact with it, unless you specifically want to do that, so the
above minus "cell.select" would suffice.

Regards

Steve


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
move from active cell offset in macro april Excel Discussion (Misc queries) 5 October 18th 09 05:02 PM
Move active cell to same location on each worksheet BeanoKid Excel Discussion (Misc queries) 3 April 15th 08 11:29 PM
Move the active cell Dennis Cheung Excel Programming 2 May 10th 07 09:05 AM
accept input and move active cell? JR Hester Excel Programming 4 July 28th 06 04:43 PM
need to Copy or Move to active cell from specified range kaream Excel Discussion (Misc queries) 2 December 14th 05 08:12 AM


All times are GMT +1. The time now is 05:06 AM.

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

About Us

"It's about Microsoft Excel"