macro to increase a value and print

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to create a macro that increases the value of a cell in a worksheet
and then prints the worksheet. it needs to do this repeatedly until the value
of the cell I'm changing gets to a certain number. Any suggestions?
 
Try this this for a start point.

Sub Sheet_Print()
Dim i As Long
Application.ScreenUpdating = False
For i = 1 To 10
With ActiveSheet
.Range("A1").Value = Value + i
.PrintOut
'.PrintOut preview:=True
End With
Next i
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top