تفضل    والكود يعمل المجلدات الغير موجودة تلقائيا    الكود اصبح: Private Sub cmd_scan_Click() On Error GoTo err_cmd_scan_Click Dim Image_Path As String Set img = CreateObject("wia.commondialog") '1 Image_Path = Application.CodeProject.Path '2 Image_Path = Image_Path & "\photo\" 'if the photo Dir dose not exist, creat it If Dir(Image_Path, vbDirectory) = "" Then MkDir Image_Path End If '3 Image_Path = Image_Path