السلام عليكم
الاخ الحبيب / حمادة باشا
جزاكم الله خيرا
وائراءا للموضوع
Option Explicit
Private Sub btnadd_Click()
Dim SourceFile As String
Dim DestinationFile As String
Const MyPicFilter = "(*.bmp;*.gif;*.jpg;*.jpeg;*.wmf;*.emf;*.dib;*.ico;*.cur)," & _
"*.bmp;*.gif;*.jpg;*.jpeg;*.wmf;*.emf;*.dib;*.ico;*.cur"
On Error GoTo ErrLoad
SourceFile = Application.GetOpenFilename(MyPicFilter, , , False)
If SourceFile = "False" Then Exit Sub
DestinationFile = ActiveWorkbook.Path & Mid(SourceFile, InStrRev(SourceFile, CStr(Application.PathSeparator)))
Me.Image1.Picture = LoadPicture(SourceFile)
FileCopy SourceFile, DestinationFile
ErrLoad:
If Err Then
MsgBox "Error Number := " & Err.Number, vbCritical, "Error Image"
Err.Clear
Else
MsgBox "تم نسخ الصورة", vbInformation
End If
End Sub
المرفق 2010
فكرة نقل الصور2.rar