ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deactivating worksheets (https://www.excelbanter.com/excel-programming/308516-deactivating-worksheets.html)

Keri[_2_]

Deactivating worksheets
 
I want to deactivate a worksheets in Visual Basic...
Basiclly I want -- when the user clicks a button for two
worksheets to become inactive... I can't seem to find the
right code -- can anyone help??

Keri

Tom Ogilvy

Deactivating worksheets
 
do you mean hidden

Worksheets(Array("Sheet1","Sheet2")).Visible = xlHidden

--
Regards,
Tom Ogilvy

"Keri" wrote in message
...
I want to deactivate a worksheets in Visual Basic...
Basiclly I want -- when the user clicks a button for two
worksheets to become inactive... I can't seem to find the
right code -- can anyone help??

Keri




Keri[_2_]

Deactivating worksheets
 
Ok that works but how do you get it back?


-----Original Message-----
do you mean hidden

Worksheets(Array("Sheet1","Sheet2")).Visible = xlHidden

--
Regards,
Tom Ogilvy

"Keri" wrote in

message
...
I want to deactivate a worksheets in Visual Basic...
Basiclly I want -- when the user clicks a button for two
worksheets to become inactive... I can't seem to find

the
right code -- can anyone help??

Keri



.


Tom Ogilvy

Deactivating worksheets
 
Worksheets(Array("Sheet1","Sheet2")).Visible = xlsheetvisible

--
Regards,
Tom Ogilvy

"Keri" wrote in message
...
Ok that works but how do you get it back?


-----Original Message-----
do you mean hidden

Worksheets(Array("Sheet1","Sheet2")).Visible = xlHidden

--
Regards,
Tom Ogilvy

"Keri" wrote in

message
...
I want to deactivate a worksheets in Visual Basic...
Basiclly I want -- when the user clicks a button for two
worksheets to become inactive... I can't seem to find

the
right code -- can anyone help??

Keri



.





All times are GMT +1. The time now is 11:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com