Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Josefina Stanley   on Jan 30 In MS Office Category.

  
Question Answered By: Mansur Bashara   on Jan 30

I dont know whats the trouble  in this, as long as I can see the
code. You said you want to hide  the worksheet.

You can specify it as

Worksheets("Sheet1").Select
Selection.Hide

or

Worksheets("Sheet1).Visible = False
Worksheets("Sheet2").Visible = False.

Either of the statements can be used. But i dont know, when exactly
you want to hide the sheets. For eg: either when you open the
workbook, you can hide the sheets which you told or before you close
the application, you can hide the sheets.

When you talked about unhiding the sheets. specify in the button
event handler, the sheet  name. For eg:

Private Sub CommandButton1_click()
Worksheets("Sheet1").Visible = True
Worksheets("Sheet2").Visible = True
End Sub

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Hiding Worksheets Or get search suggestion and latest updates.


Tagged: