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

how can i use variable cell index and "for"loop in Excell.
for example: are E4=E3+1
or A1=Fn;n=1 to 20?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default variable cell index

as your query i've compiled this one:
Sub Looping()
Dim n As Long
For n = 1 To 20
Cells(n + 4, "E") = Cells(n + 4, "E").Offset(-1, 0) + 1
Next n
End Sub
--
Regards,

Halim



"jila" wrote:

how can i use variable cell index and "for"loop in Excell.
for example: are E4=E3+1
or A1=Fn;n=1 to 20?

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
Help on index addressing using variable sheets & cell references Greggers Excel Worksheet Functions 3 September 4th 07 02:38 PM
How to index a variable in VBA Jared Excel Programming 5 November 7th 06 08:48 AM
Can the column index in a cell address be made variable? cyberdude Excel Programming 2 November 20th 05 03:39 AM
Can the column index in a cell address be made variable? cyberdude Excel Discussion (Misc queries) 1 November 20th 05 02:47 AM
Variable values in Index function mlkpied Excel Worksheet Functions 6 December 6th 04 11:38 PM


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

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"