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
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)
Does my post now comply?
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)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks