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: 110
Default Change CellA.

Hi NG

I have this macro [simplified]

Sub test()

dim RRange as range
set RRange=Range("A1:A1000")

dim CellA as range
'// Loop 1
for each CellA in RRange
'// CellA = Range("A1")

'// Loop2
dim CellA2 as range
for each CellA2 in rrange.offset(1,0)
'// doing something and now I want CellA to continue with
Range("A10"),
'// I will use a counter and Cells(counter,1)
'// Is it possible, and how ?

'// Next time in loop2 I want CellA=Range("A25")
exit for
next cellA2

'// something like: CellA=Range("A10")
next CellA

--

Best regards
Joergen Bondesen


 
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 to add a "+" to a number in a cell€Ź Martin Excel Worksheet Functions 5 June 2nd 08 01:44 PM
Automatic change of cells background color Aswathy Excel Worksheet Functions 1 March 11th 08 05:54 AM
MAX €śevery 4th cell€ť in a row Hugh Murfitt Excel Discussion (Misc queries) 3 January 11th 06 12:05 PM
SUM €śevery 4th cell€ť in a row Hugh Murfitt Excel Discussion (Misc queries) 7 January 10th 06 06:14 PM
If cellA is blank or 0 then cellB is blank ~Natasha~ Excel Worksheet Functions 2 October 28th 04 04:59 PM


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