- Katılım
- 14 Haziran 2006
- Mesajlar
- 129
Makroları aktif ettikten sonra Sheet1 isimli sayfayı da gizlemesini istiyorum
Sheets("Sheet1").Visible = False
yazıyorum ama olmuyor nasıl yapabilirim acaba...
Option Explicit
Dim InI As Integer
Dim BoSichern As Boolean
Private Sub Workbook_Open()
Application.ScreenUpdating = False
For InI = Sheets.Count To 1 Step -1
Sheets(InI).Visible = True
Next InI
Sheets("MAKROLAR AKTIF DEGIL").Visible = False
ActiveWorkbook.Saved = True
Application.ScreenUpdating = True
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
BoSichern = True
If ActiveWorkbook.Saved Then
Sheets("MAKROLAR AKTIF DEGIL").Visible = True
For InI = Sheets.Count To 1 Step -1
If Sheets(InI).Name <> "MAKROLAR AKTIF DEGIL" Then _
Sheets(InI).Visible = xlVeryHidden
Next InI
BoSichern = True
ThisWorkbook.Save
End If
End Sub
Sheets("Sheet1").Visible = False
yazıyorum ama olmuyor nasıl yapabilirim acaba...
Option Explicit
Dim InI As Integer
Dim BoSichern As Boolean
Private Sub Workbook_Open()
Application.ScreenUpdating = False
For InI = Sheets.Count To 1 Step -1
Sheets(InI).Visible = True
Next InI
Sheets("MAKROLAR AKTIF DEGIL").Visible = False
ActiveWorkbook.Saved = True
Application.ScreenUpdating = True
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
BoSichern = True
If ActiveWorkbook.Saved Then
Sheets("MAKROLAR AKTIF DEGIL").Visible = True
For InI = Sheets.Count To 1 Step -1
If Sheets(InI).Name <> "MAKROLAR AKTIF DEGIL" Then _
Sheets(InI).Visible = xlVeryHidden
Next InI
BoSichern = True
ThisWorkbook.Save
End If
End Sub