![]() |
#6
|
|||
|
|||
![]()
Yup pretty easily. How about if you put a 1 or an x in column B next to the name. The code would now be this.
Code:
Option Explicit Sub ChangeNameThenPrint() Dim wb As Workbook, cws As Worksheet, nws As Worksheet Dim CheckRow As Integer, TotalNames As Integer Set wb = ThisWorkbook Set cws = wb.Worksheets("Certificate") Set nws = wb.Worksheets("Names") TotalNames = nws.Range("A50000").End(xlUp).Row For CheckRow = 1 To TotalNames If nws.Range("B" & CheckRow).Value <> "" Then cws.Range("B42").Value = nws.Range("A" & CheckRow).Value cws.PrintOut 'You can set specific printer properties with a ( after Printout End If Next CheckRow End Sub |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sharing a notebook whilst restricting pages | Tom1 | OneNote | 1 | 08-12-2014 04:27 AM |
Email macro to read range for .To field | MattMurdock | Excel Programming | 2 | 08-07-2012 06:46 AM |
![]() |
harishankar.selvaraju | Excel Programming | 1 | 06-14-2012 03:48 AM |
Bold numerals whilst typing normally! | ianl1532 | Word | 2 | 02-20-2012 10:20 PM |
![]() |
J C M | Outlook | 1 | 01-09-2012 10:42 AM |