Приветствую всех! У меня возникла такая проблема - при экспорте сметы в ексель вылетает Run-Time err 94 
Звонил в поддержку мне сказали проблема в офисе, переустановите. Офис переставил - ошибка осталась! 
Скрин приложил.
                        
			
		Модератор: Модераторы



 Timur
 Timur
			
Public Src As Excel.Worksheet
Private Sub CBPrintMat_Click()
  UpdateButtonRR
End Sub
Private Sub CBRR_Click()
  UpdateButtonRR
End Sub
Sub UpdateButtonRR()
  CBPrintTrud.Enabled = CBRR.Value
  CBPrintMash.Enabled = CBRR.Value
  CBPrintMat.Enabled = CBRR.Value
  On Error GoTo AutoCheck
    'Set src = ActiveWorkbook.Sheets("Source")
    CBPrintPriceInfo.Enabled = CBRR.Value And CBPrintMat.Value And Src.Cells(1, 7) = 0
    Exit Sub
AutoCheck:
  CBPrintPriceInfo.Enabled = CBRR.Value And CBPrintMat.Value
End Sub
Private Sub CommandButton1_Click()
   With Form_Ls_Mtsn
     Application.ScreenUpdating = False
       unit_ls_mtsn.SkipAssignedPopr = .CheckBox10.Value
       unit_ls_mtsn.Prm_IsPrnKodPopr = CheckBox12.Value
       unit_ls_mtsn.Prm_IsPrnPrimPopr = CheckBox11.Value
       unit_ls_mtsn.Prm_PrintPodoic = OBUtv.Value
       'MK 19.01.2007 --->
       unit_ls_mtsn.NewDoc = .OptionButton7.Value Or .OptionButton9.Value            <-- вот эта строчка выделена желтым цветом (вроде указывает что в ней что то не так)
       unit_ls_mtsn.Form1b = .OptionButton9.Value
       'NewDoc = .OptionButton7.Value
       'MK 19.01.2007 <---
       unit_ls_mtsn.Prm_Print_Comment = CheckBox14.Value
       unit_ls_mtsn.Prm_Print_On_LS = CheckBox4.Value
       unit_ls_mtsn.Prm_Print_Cenoobrazovanie = CheckBox16.Value
       unit_ls_mtsn.Prm_AltTab = OptionButton11.Value
       unit_ls_mtsn.Prm_PrintItogVidRab = OBVirRabPrint.Value
       unit_ls_mtsn.Prm_FullEdIzm = .CBFullEdIzm.Value
       unit_ls_mtsn.PrmPrintRR = CBRR.Value
       unit_ls_mtsn.PrmPrintTrud = CBPrintTrud.Value And CBRR.Enabled
       unit_ls_mtsn.PrmPrintMash = CBPrintMash.Value And CBRR.Enabled
       unit_ls_mtsn.PrmPrintMat = CBPrintMat.Value And CBRR.Enabled
       unit_ls_mtsn.PrmPrintPriceInfo = CBPrintPriceInfo.Value And CBRR.Enabled And CBPrintMat.Value
       unit_ls_mtsn.Prm_ColumnAddNumSmeta = CBPrintPosSmeta.Value
       Ls_MTSN DocType, _
              .CheckBox4.Value, _
              .CheckBox3.Value, _
              .OptionButton4.Value, _
              .CheckBox5.Value, _
              .CheckBox1.Value, _
              .CheckBox2.Value, _
              .CheckBox6.Value, _
              .OptionButton6.Value, _
              .CheckBox7.Value, _
              CheckBox8.Value, _
              CheckBox9.Value, _
              OBUtv.Value
     Application.ScreenUpdating = True
     .Hide
   End With
End Sub
Private Sub CommandButton2_Click()
  Form_Ls_Mtsn.Hide
End Sub
Private Sub UserForm_Activate()
Dim IsCompens As Boolean
  Set Src = ActiveWorkbook.Sheets("Source")
  IsCompens = Application.Run("Main.xls!IsCompens", Src)
  If IsCompens Then
    Form_Ls_Mtsn.CheckBox16.Enabled = True
    Form_Ls_Mtsn.CheckBox16.Value = False
  Else
    Form_Ls_Mtsn.CheckBox16.Enabled = False
    Form_Ls_Mtsn.CheckBox16.Value = False
  End If
  Form_Ls_Mtsn.TextBox1.Value = unit_ls_mtsn.NRSPZPM
End Sub remont okon.sob
 remont okon.sob


 Timur
 Timur
			





 Kir
 Kir
			
Kir писал(а):А патч установите. Патчи, они понимаете ли, выпускаются для исправления ошибок.



 Kir
 Kir
			



 Kir
 Kir
			
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0
© 1995-2019 Группа компаний «СтройСофт»