![]() |
#1
|
|||
|
|||
![]()
Hi,
I'm trying to hide a few of labels when printing if the label caption/text is "Y/N". Below is the code I'm using: Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer) If lbl_Slave1 = "Y/N" Then Me.lbl_Slave1.Visible = False Else Me.lbl_Slave1.Visible = True End If End Sub Thanks! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Pluviophile | Word | 10 | 11-25-2013 12:40 PM |
Userform label bordercolor not controllable if click label | skarden | Word VBA | 1 | 09-29-2013 07:27 PM |
![]() |
boy33 | Mail Merge | 1 | 01-30-2013 03:11 PM |
Word Form/ActiveX drop down menu/value in a different field | AMackenzieFFCU | Word VBA | 1 | 01-14-2013 07:48 AM |
Need help with placeholder text in ActiveX controls in Word | mhellerstein | Office | 0 | 11-02-2011 12:31 PM |