View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default Visible property on Worksheets

Hi Russel
try
Worksheets("Sheet1").Visible = xlsheetveryhidden

works for me
Frank



Russell Lucas wrote:
Hello everyone,

Does anyone know how you can change the default "xlsheetvisible"
setting for Worksheet.visible through VBA, bearing in mind that I
have tryed all of the bellow conitations of code:-

Application.Workbooks(BOOK1).Worksheets(Sheet1).Vi sible =
xlsheetveryhidden

With Workbooks(BOOK1).Worksheets(Sheet1)
.visible = xlveryhidden
end with

I have also tryed several ways of defining the worksheet.

Can anyone help out?

Thanks