G
Guest
With the following code I get a runtime error 438....Object doesn't support
this property or method. If code gets hung up on the first "If" statement
below.......Can you tell me what I am doing wrong? Thanks, Chace
For Each ctl In Me
With ctl
If .ShortcutMenuBar = "num" Then
DataType = 1
Else
If .ShortcutMenuBar = "x" Then
DataType = 2
End If
End If
Select Case DataType
Case 1
'Case 1 stuff here
Case 2
'Case 2 stuff here
End Select
End With
Next ctl
this property or method. If code gets hung up on the first "If" statement
below.......Can you tell me what I am doing wrong? Thanks, Chace
For Each ctl In Me
With ctl
If .ShortcutMenuBar = "num" Then
DataType = 1
Else
If .ShortcutMenuBar = "x" Then
DataType = 2
End If
End If
Select Case DataType
Case 1
'Case 1 stuff here
Case 2
'Case 2 stuff here
End Select
End With
Next ctl