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

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

  • أفضل إجابة
قام بنشر

السلام عليكم

 

جرب هذا 

 

Sub dahmour()
l = Range("b" & Rows.Count).End(xlUp).Row
For x = 3 To l
t = 0
col = 34
 For Each c In Range("c" & x & ":ag" & x)
 If t = 0 Then
 If c = "A" Then
 Cells(x, col) = DateSerial(Year([a2]), Month([a2]), Cells(2, c.Column).Value)
  t = t + 1
 col = col + 1
 End If
 Else
 If c = "A" Then
 t = t + 1
 Else
 Cells(x, col) = DateSerial(Year([a2]), Month([a2]), Cells(2, c.Column - 1).Value)
 t = 0
 col = col + 1
 End If
 End If
Next
Next
End Sub

 

 

تحياتي 

CODE+.rar

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