+ Reply to Thread
Results 1 to 4 of 4

Thread: Print to PDF

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Print to PDF

    Hi,

    I have the following code which i got previously from this forum which i now need to change. I need the code to now print to a pdf and be saved in a particular folder which is the same for all pdf copies. Each pdf is to be named in the following manner "DT_[Name contained in cell B9]_[date in reverse order]"

    Thanks for your help.......

    Sub print_tenderers4()
    
    With Worksheets("Suppliers")
        lrow = .Range("B" & Rows.Count).End(xlUp).Row
        For i = 2 To lrow
            If .Range("T" & i).Value = "Yes" Then
                Worksheets("Drawing Register").Range("B9").Value = .Range("B" & i).Value
                Worksheets("Drawing Register").Select
                ActiveWindow.ActiveSheet.PrintOut copies:=1, collate:=True
            End If
        Next i
    End With
    
    End Sub
    Last edited by Tydan; 02-19-2012 at 04:23 AM. Reason: Code tags added

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Print to PDF

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Print to PDF

    Does my post now comply?

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Print to PDF

    Yes thanks. See this
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

+ Reply to Thread

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.2.0