اذهب الي المحتوي
أوفيسنا

ارجو المساعدة في ترحيل البيانات


aburajai

الردود الموصى بها

السلام عليكم

انسخ هذا الكود في الصفحة رقم 1

Private Sub Worksheet_Change(ByVal Target As Range)

    Last_Row = ورقة2.Cells(Rows.Count, "D").End(xlUp).Row + 1
    LastRow = ورقة3.Cells(Rows.Count, "D").End(xlUp).Row + 1
If Not IsEmpty(Target) Then
If Target.Column = 3 Then
    ورقة2.Cells(Last_Row, 4) = Target.Value
Else
If Target.Column = 4 Then
    ورقة3.Cells(LastRow, 4) = Target.Value
End If
End If
End If

End Sub


رابط هذا التعليق
شارك

استعمل هذه الكود

Private Sub Worksheet_Change(ByVal Target As Range)

    Last_Row = ورقة2.Cells(Rows.Count, "D").End(xlUp).Row + 1
    LastRow = ورقة3.Cells(Rows.Count, "D").End(xlUp).Row + 1
If Not IsEmpty(Target) Then
If Target.Column = 3 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 3)).Copy ورقة2.Cells(Last_Row, 1)
Else
If Target.Column = 4 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 4)).Copy ورقة3.Cells(LastRow, 1)
End If
End If
End If

End Sub

رابط هذا التعليق
شارك

 

استعمل هذه الكود

Private Sub Worksheet_Change(ByVal Target As Range)

    Last_Row = ورقة2.Cells(Rows.Count, "D").End(xlUp).Row + 1
    LastRow = ورقة3.Cells(Rows.Count, "D").End(xlUp).Row + 1
If Not IsEmpty(Target) Then
If Target.Column = 3 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 3)).Copy ورقة2.Cells(Last_Row, 1)
Else
If Target.Column = 4 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 4)).Copy ورقة3.Cells(LastRow, 1)
End If
End If
End If

End Sub

 

السلام عليكم ورحمة الله

 

اخي ابو حنين

وضعت الكود الجديد ولم يعمل

 

اخي حبذا لو غلبتك قليلا فسامحني

 

ان تقوم بوضعه في الملف المرفق

والتاكد منه

وارفاق الملف بعد التعديل

 

فلعل الخطا يكون مني

 

شاكرا تعاونك وفي ميزان حسناتك ان شاء الله

 

 

post-36560-0-19284700-1387253135_thumb.g

تم تعديل بواسطه aburajai
رابط هذا التعليق
شارك

السلام عليكم

لا يوجد مرفق

الخطأ في تسمية الاوراق

Private Sub Worksheet_Change(ByVal Target As Range)

    Last_Row = sheet2.Cells(Rows.Count, "D").End(xlUp).Row + 1
    LastRow = sheet3.Cells(Rows.Count, "D").End(xlUp).Row + 1
If Not IsEmpty(Target) Then
If Target.Column = 3 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 3)).Copy sheet2.Cells(Last_Row, 1)
Else
If Target.Column = 4 Then
    Range(Cells(ActiveCell.Row, 1), Cells(ActiveCell.Row, 4)).Copy sheet3.Cells(LastRow, 1)
End If
End If
End If

End Sub

رابط هذا التعليق
شارك

اخي ابو حنين

 

ملف الاكسل مرفق في المشاركة الاولى

بارك الله فيك

 

لم يعمل الكود عندي

 

للتذكير : انا اعمل على اكسل 2003

تم تعديل بواسطه aburajai
رابط هذا التعليق
شارك

بارك الله فيك ابو حنين وجزاك الله خيرا

 

هناك مشكلة ظهرت عندي

 

وهي عندما اقوم باستعما خاصية الالصاق في سطر الصفحة الاولى

 

لا يقوم الكود بترحيل البيانات الى الصفحة2 و 3

 

اما اذا قمت بالكتابة في كل خلية على حدة

 

يقوم الكود بالترحيل

 

 

فهل من الممكن حل هذه المشكلة

 

جزاك الله خيرا

رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information