اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
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

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