View Single Post
  #1  
Old 22-06-2018, 12:04
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 161
Default When passing TextBox in function corel 2018 does not take control as control

When passing TextBox in function corel 2018 does not take control as control
Control Variable in corel 2018 VBA not working.
Is someone also facing same problem

SunkRaised Me.Label300, -1

Public Sub SunkRaised(ctl As Control, i As Integer)
If i = -1 Then
ctl.SpecialEffect = fmSpecialEffectSunken
ElseIf i = 1 Then
ctl.SpecialEffect = fmSpecialEffectRaised
End If
End Sub

it says error 13

Last edited by aakkaarr; 22-06-2018 at 13:11.
Reply With Quote