내가 줄 뒤에 실수를하고있는 중이 야 알고에 침입 : 는 If intChoice <> 0 Then
사람은 내가 그것을 수습하는 데 도움이 수 있습니까?가져 오기 txt 파일하고 세포
Private Sub CommandButton1_Click()
Dim intChoice As Integer
'Select the start folder
Application.FileDialog(msoFileDialogOpen).InitialFileName = "I:\Dunnings"
'make the file dialog visible to the user
intChoice = Application.FileDialog(msoFileDialogOpen).Show
'determine what choice the user made
If intChoice <> 0 Then
Workbooks.OpenText.Filename:= intChoice, Origin:=xlMSDOS, StartRow:=23, DataType:=xlFixedWidth, FieldInfo:= _
Array(Array(0, 1), Array(6, 2), Array(23, 1), Array(30, 2), Array(63, 2), Array(68, 1), _
Array(77, 4), Array(88, 4), Array(101, 1), Array(117, 1)), TrailingMinusNumbers:= _
True
NewPath = Mid(ThisWorkbook.FullName, 1, _
Len(ThisWorkbook.FullName) - Len(ThisWorkbook.Name)) & "\" & _
"Dunnings - " & Format(Date, "dd-mm-yyyy") & ".xlsm"
ThisWorkbook.SaveAs (NewPath)
End If
End Sub
어떤 오류와 줄을 알려주십시오. – L42
다음 라인에 있습니다. intChoice <> 0 ... Cant가 해당 변수를 intChoice로 사용합니다 ... – Isu