الشيباني1 قام بنشر يناير 12, 2011 قام بنشر يناير 12, 2011 اخواني الاعزاء تحية طيبه ارجو المساعده فيما جاء بالمرفق مع الامتنان Book1.zip
عبد الفتاح كيرة قام بنشر يناير 12, 2011 قام بنشر يناير 12, 2011 فى بداية الكود أضف السطر التالى If InputBox(" your pass") = "123" Then وقبل end sub أضف end if ليصبح الكود Sub ãÇßÑæ1() ' ' ãÇßÑæ1 ãÇßÑæ ' ÇáãÇßÑæ ãÓÌá ý11/01/2011 ÈæÇÓØÉ ýUSER ' ' If InputBox(" your pass") = "123" Then Range("C3:H17").Select Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With Selection.Borders(xlInsideVertical).LineStyle = xlNone Selection.Borders(xlInsideHorizontal).LineStyle = xlNone With Selection.Interior .ColorIndex = 36 .Pattern = xlSolid End With With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge End If End Sub
الشيباني1 قام بنشر يناير 13, 2011 الكاتب قام بنشر يناير 13, 2011 الحمد لله الذي هدانا لهذا المنتدى الرائع واهدانا اخوة اخوه جزاهم الرحمن كل خير اشكرك اخي الكريم وبقي لي الطلب الثاني الذي تضمنه المرفق اعلاه ارجو ان يتسع له وقتكم مع الامتنان
عبد الفتاح كيرة قام بنشر يناير 13, 2011 قام بنشر يناير 13, 2011 الكود التالى لإخفاء الورقة Sub hido() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets If ws.Name = "ورقة1" Then ws.Visible = xlSheetHidden End If Next ws End Sub وهذا لإظهاره مع المطالبة بكلة السر 123 Sub showo() Dim ws As Worksheet If InputBox(" your pass") = "123" Then For Each ws In ThisWorkbook.Worksheets If ws.Name = "ورقة1" Then ws.Visible = xlSheetVisible End If Next ws End If End Sub المرفق كود إظهار و إخفاء أوراق العمل بكلمة سر - kemas.rar
الردود الموصى بها
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.