immyjimmy
Active Member
- Joined
- May 27, 2002
- Messages
- 257
Greetings, all...
Column AA1 has a list of student's names (it varies each term). Cell B9 has been a drop down list which when one was selected, updated vie vlookup the student's scores in each subject. Now I want to change it so batch print from the list. It prints the first student's sheet fine, but won't go to the next...
Here's my code.
Any ideas on what I need to change/edit/fix?
Thanks in advance,
Jim
The most exciting phrase to hear in science, the one that heralds new discoveries, is not Eureka! (I found it!) but rather, 'hmm.... that's funny...' - Isaac Asimov
Column AA1 has a list of student's names (it varies each term). Cell B9 has been a drop down list which when one was selected, updated vie vlookup the student's scores in each subject. Now I want to change it so batch print from the list. It prints the first student's sheet fine, but won't go to the next...
Here's my code.
Code:
Sub Print_Page()
Dim COUNTER As Integer
COUNTER = 1
Range("AA1").Select
Selection.Copy
Range("B9").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1:F36").Select
Selection.PrintOut Copies:=1, Collate:=True
Range("AA1").Select
ActiveCell.Offset([COUNTER], [0]).Range("A1").Select
COUNTER = COUNTER + 1
Do While B9 <> ""
Selection.Copy
Range("B9").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1:F36").Select
Selection.PrintOut Copies:=1, Collate:=True
Loop
Range("A1").Select
End Sub
Any ideas on what I need to change/edit/fix?
Thanks in advance,
Jim
The most exciting phrase to hear in science, the one that heralds new discoveries, is not Eureka! (I found it!) but rather, 'hmm.... that's funny...' - Isaac Asimov
Last edited by a moderator: