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: 10
Default Filling cells

What kind of loop do I need for filling A6 till A60 and then go to D6 and
filling till D60. My code is:
Sub Nummeren()
Dim lStart As Long
Dim lStop As Long
Dim i As Integer
Dim lTeller As Long
lStart = Range("J1").Value
lStop = Range("K1").Value
i = 6

For lTeller = lStart To lStop Step 10
Cells(i, 2).Value = lTeller
i = i + 1
Next

End Sub
With this code I want to fill the column B6 till B60, then jump to D6 till
D60. etc.
The teller stops when it is reaching the number mentioned in lstop.
J1 = 38400
K1 = 38800

Who can help?
John
 
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
Filling in blank cells with information from cells above it tracytracy123 Excel Discussion (Misc queries) 1 June 22nd 09 11:04 PM
Filling cells FSt1 Excel Discussion (Misc queries) 1 January 10th 08 03:39 AM
filling cells Art Excel Discussion (Misc queries) 0 November 30th 06 03:36 PM
filling cells widman Excel Discussion (Misc queries) 0 November 29th 06 07:29 PM
filling cells Art Excel Discussion (Misc queries) 0 November 29th 06 06:35 PM


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