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

مساعدة فى كود vba


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

السلام عليكم السادة الافاضل

معايا كود عايز اضيف عليه شرط if

Sub Uppercase()
   ' Loop to cycle through each cell in the specified range.
   For Each x In Range("J2:J7")
      ' Change the text in the range to uppercase letters.
      x.Value = LCase(x.value)
   Next
End Sub

بحيث لو الخلية كانت رقم ميطبقش عليها حاجة ويكمل على الخلية اللى بعدها

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

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

Captugggre.JPG

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

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.

×
×
  • اضف...

Important Information