اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

استبدال علامة التاريخ


إذهب إلى أفضل إجابة Solved by lionheart,

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

السلام عليكم اخوانى الاعزاء

اريد كود يعمل على استبدال علامة التاريخ من / الى -

بمعنى لو التاريخ 28/02/2023 يتحول الى 28-02-2023

اريد كود وليس معادلة 

شكرا 

استبدال.xlsx

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

  • أفضل إجابة

I suppose you are looping through cells in a range so in VBE insert new module then type the code like that

Sub Test()
    Dim cel As Range
    For Each cel In Range("D1:D10").Cells
        cel.Value = Replace(cel.Value, "/", "-")
    Next cel
End Sub

 

  • Like 1
  • Thanks 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