Spent Hours Looking for help on this Board, but...
Posted by Craig H. on March 15, 2001 6:40 PM
Would any of you Excel masters be kind enough to have a look at my macro? I am an embryo at this, but trying to learn. What I am looking to do is select a range in the following column(which changes by the day)and have it stop at a blank cell. There has been somewhat close answers on the board, but can't quite get it to gel. Would be most grateful.
Craig
Sub PrintLoop()
'
' PrintLoop Macro
' Macro recorded 2/20/2001 by Craig Hansen
'
'
Do Until ActiveCell.Value = ""
Set MyRange = Sheets("Excess2").Range("J466:J820")
For Each Cell In MyRange
Cell.Copy
Application.Goto Reference:="DNUM"
ActiveSheet.Paste
Selection.Font.Bold = True
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With
Range("A2").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next
Loop
End Sub