LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Select Activecell in Range

Thanks guys I am up and running again straight into another problem I expect

"David" wrote:

for each cl in selection.cells
cl.activate
next cl
--
David


"PraxisPete" wrote:

Hi Everybody
I have code that references to the ActiveCell and I would like to use this
code looping through a range selection. If I code as follows

For Each cell in Selection
€˜MyCode in here
Next cell
This does not change the ActiveCell

How can I loop through a range selection making each cell become the
Activecell

Example
Range("A3,A6,A9").Select
For Each cell In Selection

' Make cell ActiveCell
' Code that references to the Activecell

Next cell

Many Thanks in advance.

 
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
ActiveCell in a Range? Filo Excel Discussion (Misc queries) 3 May 22nd 07 09:52 PM
Name of range containing ActiveCell? Ed Excel Programming 13 January 4th 05 12:55 AM
Saving the activecell range for later use Tim Coddington Excel Programming 0 December 12th 04 09:12 PM
ActiveCell.End(xlDown).Select not working consistently reclusive monkey Excel Programming 2 October 13th 03 02:28 PM
XP VBA: Range("A2", ActiveCell.SpecialCells(xlLastCell)).Select wessman Excel Programming 2 July 23rd 03 06:33 PM


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

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"