A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The following Sub will Hide or Show the folder depending on its current state
Sub Hide_Show_Folder()
Dim objFSO As Object
Dim objFolder As Object
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Application.ActiveWorkbook.Path & "\Charts")
If objFolder.Attributes = objFolder.Attributes And 2 Then
objFolder.Attributes = objFolder.Attributes Xor 2
End If
Set objFolder = Nothing
Set objFSO = Nothing
End Sub