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

إضافة رمز معين، أو نص معين للخلايا الفارغة في الجدول


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

تحتاج أحيانا للبحث عن الخلايا الفارغة في الجدول لكتابة رمز معين، أو نص معين للبحث عنه، أو استكمال شيء ناقص، أو غير ذلك.

وهذا الماكرو يتيح لك ذلك:

'
' إضافة رمز معين، أو نص معين للخلايا الفارغة
'
'
    Dim tTable As Table
    Dim cCell As Cell
    Dim sTemp As String
    ss = InputBox("أدخل الرمز أو النص الذي تريد أن تجعله في الخلايا الفارغة")
    sTemp = ss
    For Each tTable In ActiveDocument.Range.Tables
        For Each cCell In tTable.Range.Cells
                If Len(cCell.Range.Text) < 3 Then
                cCell.Range = sTemp
            End If
        Next
    Next
    Set oCell = Nothing
    Set tTable = Nothing
End Sub

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

  • 2 weeks later...

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