Results 1 to 1 of 1

Auto Print

Threaded View

djfatboyfats Auto Print 05-19-2009, 10:14 AM
  1. #1
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Auto Print

    Afternoon all

    I have a sheet that i have to print out every day for each memeber on my team, i have the template set out and a validation list in cell B18 with my staffs names in there, i have to drop down each name and press print.
    So what i though is there must be a quicker way so i recorded a basic macro that repeated what i had done, problem there was it printed the same name (Validation name didnt move) so i tried thinking away around it and came up with this.

    ' test2 Macro
    ' Macro recorded 19/05/2009 by
    '
    
    '
        ActiveCell.FormulaR1C1 = "=R[-4]C[24]"
        Range("A1:O3").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[-3]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[-2]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[-1]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=RC[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[1]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[2]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[3]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[4]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[5]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[6]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[7]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[8]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[9]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[10]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[11]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[12]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("B5:C5").Select
        ActiveCell.FormulaR1C1 = "=R[13]C[24]"
        Range("B6").Select
        ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
        Range("A6").Select
    End Sub
    This is not ideal and sometimes misses the first name off the list if another name is already in there.

    Does anyone know a better way?

    File is also attached
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1