View Single Post
 
Old 01-13-2014, 12:52 AM
Catty Catty is offline Windows 7 32bit Office 2010 32bit
Advanced Beginner
 
Join Date: Nov 2013
Posts: 39
Catty is on a distinguished road
Default How to hide an activeX label in word 2010

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
But obviously this is not working. Any ideas where I'm going wrong or how to best do this?

Thanks!
Reply With Quote