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

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

قام بنشر

فى بداية الكود أضف السطر التالى

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

قام بنشر

الحمد لله الذي هدانا لهذا المنتدى الرائع واهدانا اخوة اخوه جزاهم الرحمن كل خير اشكرك اخي الكريم وبقي لي الطلب الثاني الذي تضمنه المرفق اعلاه ارجو ان يتسع له وقتكم مع الامتنان

قام بنشر

الكود التالى لإخفاء الورقة

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

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

سجل دخولك الان
  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information