我想你在第二行有一个拼写错误:
我想,根据我的测试,你可以参考我。属性,不带前缀的属性本身,以及指定的类变量。你也可以试试。
Public WithEvents img1 As MSForms.Image
Private Acn$ ' As String if you meant!
Dim rng1 As Range, rng2 As Range, rng3 As Range
' Property Definitions
Public Property Get Aircraft() As String
Aircraft = Acn
End Property
Public Property Let Aircraft(Value As String)
Acn = Value
End Property
' Events Procedures
Private Sub img1_Click() ' Showing Progress Form
With ThisWorkbook.Sheets("Performance")
Set rng1 = .Range("ProgCrit")
Set rng2 = .Range("Progress")
Set rng3 = .Range("op_log")
End With
frmprogress.LAc = Me.Aircraft
rng1.Cells(2, 1) = Me.Aircraft
rng3.AdvancedFilter xlFilterCopy, rng1, rng2
oprecord.Calculate
frmprogress.Show
End Sub