Re: $$Excel-Macros$$ Excel VBA to hide sheets of a workbook closes others too

2015-03-09 Thread Anil Gawli
Dear Gaurav, Thisworkbook and activeworkbook is same when comes to work but the difference is thisworkbook will work where the code is written and activeworkbook will work with active file On Mon, Mar 9, 2015 at 3:51 PM, Gaurav Devrani gauravdev1...@gmail.com wrote: Hi, I tried working on

Re: $$Excel-Macros$$ Excel VBA to hide sheets of a workbook closes others too

2015-03-09 Thread Gaurav Devrani
Hi, I tried working on that.. while I was testing that , nothing such happend as you said that your other workbook started hidding sheets. Just wanted to See if you are using activeworkbook instead of thisworkbook. Let me know, if this is not the issue. I will see what i can do for that. And also

Re: $$Excel-Macros$$ Excel VBA to hide sheets of a workbook closes others too

2015-03-03 Thread Yahya Muhammad
Dears Any solution, please ! On Mon, Mar 2, 2015 at 11:24 AM, Yahya Muhammad yahya...@gmail.com wrote: Hi Experts I have an excel workbook, say Workbook1 with a vba on its workbook_open event to hide all worksheets except one, as follows:

$$Excel-Macros$$ Excel VBA to hide sheets of a workbook closes others too

2015-03-02 Thread Yahya Muhammad
Hi Experts I have an excel workbook, say Workbook1 with a vba on its workbook_open event to hide all worksheets except one, as follows: - Private Sub Workbook_Open() Dim sh As Worksheet For