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

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

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

السلام عليكم ورحمة الله وبركاته

اتمني حد يرد عليا في طلبي دا

يوجد ماكرو اسمه kh_wVisible

عايز اضيفه مع الكود بنفس الطريقه في الكود وكل ماضيفه للاسف لا يعمل علما ان لاغي علامة x من العمل يعني الاكسل لا يغلق لو ضغطنا علي علامة ( x )

وعامل زر لاغلاق الاكسل

يريت اهل الخبرة يفدوني في اصلاح هذا الكود

الكود

Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error Resume Next
If Sheets(1).Range("a1").Value = 0 Then
Cancel = True
Else
Cancel = False
End If
kh_wVisible False
End Sub

تم تعديل بواسطه ابو احمد 17475
قام بنشر (معدل)

ياريت ترفق المثال لانه كدا  مش واضح  

وبعدين كتابته كدا فيها  غلط المفروض يبقي كدا 

kh_wVisible = False
kh_w.Visible = False

منتظر المرفق او التوضيح

تم تعديل بواسطه ياسر العربى
  • 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.

×
×
  • اضف...

Important Information