SelectionEnvironment Property

Discussion created by 800592400 on Apr 12, 2010
I got a compile error when I tried to run the macros shown as below:
Public Sub SelEnv()
  Dim pSelEnv as ISelectionEnvironment
  Set  pSelEnv = New SelectionEnvironment
  pSelEnv.LinearSearchDistance = 3
  Dim pMxApp as IMxApplication
  Set  PMxApp = Application
  pMxApp.SelectionEnvironment = pSelEnv  'where the compile error emerged and said: Method or data member
                                                              'not find
End Sub
SelectionEnvironment method could be found by Auto List Members when I typed pMxApp. and I knew it was a read-only property of interface of MxApplication.

Thank you very much for your time and patience.