|
-
Nov 3rd, 2000, 11:29 AM
#1
Thread Starter
New Member
How do I change the following code to include multiple sheets vs. only one?
Sub DoLoop()
Dim i As Integer
Dim sNCell As String
Set currentCell = Worksheets("Sheet1").Range("B2")
i = 1
Do While Not IsEmpty(currentCell)
i = i + 1
sNCell = "N" & i
Worksheets("Sheet1").Range("N2").Copy _
Destination:=Worksheets("Sheet1").Range(sNCell)
Set nextCell = currentCell.Offset(1, 0)
Set currentCell = nextCell
Debug.Print currentCell
Loop
Any ideas are helpful. Thanks!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|