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

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

قام بنشر (معدل)

جرب هذا الماكرو (يوضع في حدث الصفحة  Sheet1)

Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
 If Not Intersect(Target, Columns(5)) Is Nothing _
 And Target.Count = 1 And Target.Row > 8 Then
    my_hour = Evaluate("=hour(now())")
    m = Target.Value
    Select Case my_hour
       Case Is < 12
           Myval = "AM" & Format(Date, "yyyymmdd")
           Case Else
           Myval = "PM" & Format(Date, "yyyymmdd")
       End Select
     Target.Value = Myval & "" & m
 End If
Application.EnableEvents = True
End Sub

 

تم تعديل بواسطه سليم حاصبيا
  • Like 1

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