Try
ThisWorkbook.Visible = False
Juan Pablo
--------------------
Stan, a familiar problem, I think I've read this somewhere before :)
Using a string variable name codeWorkbook, you can use:
codeWorkbook = ThisWorkbook.Name
Windows(codeWorkbook).Visible = False
Regards,
BarrieBarrie Davidson
Thanks guys.
Barrie - You helped solve my other problem last night. Thanks again.
Juan, it doesn't work for me
I tried using this one line of code and get a compile error "Method or data member not found". Any ideas why it doesn't work for me??
Barrie
Re: Juan, it doesn't work for me
I didn't copy the entire thing, sorry
Windows(Thisworkbook.Name).Visible = False
It's the same, one line shorter, than yours.
Juan Pablo
Thanks Juan, nothing like learning something new !! (NT)
Windows(Thisworkbook.Name).Visible = False It's the same, one line shorter, than yours. : I tried using this one line of code and get a compile error "Method or data member not found". Any ideas why it doesn't work for me?? : Barrie :