Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't get a reply to incrementing dates so I manually wrote a macro that
would start with Jan 1 2004 then print, go to the next line of code Jan 2 2004 then print. I tried to add lines in between for dates Jan 3, Jan 4, etc. What is printing out is the first select and the last select. What is wrong with it. *I ' the lines out to see the code run but does not print out with the 'references removed Range("I1:J1").Select ActiveCell.FormulaR1C1 = "1/1/2004" Range("I2").Select Application.Goto Reference:="Print_Area" Selection.PrintOut Copies:=1, Collate:=True Range("I1:J1").Select ActiveCell.FormulaR1C1 = "1/2/2004" Range("I2").Select Application.Goto Reference:="Print_Area" Range("I1:J1").Select ActiveCell.FormulaR1C1 = "1/3/2004" Range("I2").Select Application.Goto Reference:="Print_Area" 'Range("I1:J1").Select 'ActiveCell.FormulaR1C1 = "1/4/2004" 'Range("I2").Select 'Application.Goto Reference:="Print_Area" 'Range("I1:J1").Select 'ActiveCell.FormulaR1C1 = "1/5/2004" 'Range("I2").Select Application.Goto Reference:="Print_Area" ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Changes/Prints Document Differently & it also Locks some Cel | Excel Discussion (Misc queries) | |||
Is there a way to default the number times a document prints? | Excel Discussion (Misc queries) | |||
In an excel document the info n row 2 prints out on both pages? He | Excel Discussion (Misc queries) | |||
A 2 line text showing up in the Cell in Excel prints in 1 line | Excel Discussion (Misc queries) | |||
document prints shifted to the right like it is right justified. | Excel Discussion (Misc queries) |