Thread: print with data
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
patrick molloy patrick molloy is offline
external usenet poster
 
Posts: 391
Default print with data

This procedure should help:

Sub Output()
Dim rw As Long
'set row to first row of data
rw = 1
Do Until Cells(rw, "C") = ""
Range("B1").Calue = Cells(rw, "C")
Range("B2").Calue = Cells(rw, "D")
ActiveSheet.Print
rw = rw + 1 ' next row
Loop
End Sub

Patrick Molloy
Microsoft Excel MVP


-----Original Message-----
Dear all,

I've a worksheet

A B

C D
Date 3.1.03 David
Name 4.1.03 Tom
6.1.03 Mary
8.1.03 Roy

The printing area is A1:B2
B1=C1 and B2=D1 for the first printout
B1=C2 and B2=D2 for the second printout
and so on.....

How can I do this?

thanks

ims



.

 
ExcelBanter Database Error
Database Error Database error
The ExcelBanter database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.excelbanter.com home page, then try to open another page.
  • Click the Back button to try another link.
The www.excelbanter.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.