2016-05-17 9 views
0

を設定していない私は、この部分にRun-time error '91': Object variable or With block variable not setを取得しています:実行時エラー「91」:オブジェクト変数またはWithブロック変数VBA

Dim cn As ADODB.Connection: Set cn = New ADODB.Connection 

    schema_nm = dbsheet.cb_BU.Value 

    If conn_to_SQL(cn) = False Then 
     Exit Sub 
    End If 

    Call any_action(cn, "Load Part") 
    If Not user_active = 1 Then 
     Exit Sub 
    End If 

    Application.ScreenUpdating = False 
    Application.Calculation = xlCalculationManual 
    SkipSave = True 


    If MDIsheet.AutoFilter.FilterMode = True Then MDIsheet.ShowAllData <----HERE 

任意の提案?

答えて

0

MDIsheetがオブジェクトに割り当てられていないことを示します。具体的には、ワークシート。

関連する問題