Filehost.ro - gazduire fisiere
Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Nou pe simpatie:
Profil Adelinadia
Femeie
25 ani
Mures
cauta Barbat
27 - 71 ani
Mrrrr's Forum (VIEW ONLY)ReguliInregistrareLoginPozeNu sunteti logat. Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides /

[EXCEl] Hide Activesheet without Having to Name It (VBA)

Pagini: 1 Moderat de TRaP, TonyTzu
#1
TRaP
Moderator
Postari: 960
Been meaning to hide the active sheet when deactivating it, but I had to name the sheet specifically, otherwise the code would hide the sheet that was selected next instead of the activesheet.

But it's as simple as the following code to hide the activesheet:


Private Sub Worksheet_Deactivate()
    Me.Visible = False ' Me refers to the sheet containing this code
End Sub



Source:
https://www.mrexcel.com/board/threads/d ... eet.66760/


 
   
Pagini: 1  
Mergi la