PC Review


Reply
Thread Tools Rate Thread

Can't Unhide Complete Workbook after adding code to hide it

 
 
Stephan Leduc
Guest
Posts: n/a
 
      21st Sep 2008
Hello,

I'm creating a user form and I was trying some code to have the userform
showed off only, without the workbook and Excel showing off.

It works great , too great since I can't unhide anymore. I tried ALT+F11 or
F7 and nothing worked.

When I open the Excel file, I see my sheets, and my msg box appears and when
I click OK on the MSG BOX, the whole workbook and Excel disappears and my
user form appears.

I'm relatively new to VBA.

Thanks a lot in advance for any help.

Regards

Stephan


 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      21st Sep 2008
Can you open it without enabling the macros, make the change and save with
another name?
--
HTH,
Barb Reinhardt




"Stephan Leduc" wrote:

> Hello,
>
> I'm creating a user form and I was trying some code to have the userform
> showed off only, without the workbook and Excel showing off.
>
> It works great , too great since I can't unhide anymore. I tried ALT+F11 or
> F7 and nothing worked.
>
> When I open the Excel file, I see my sheets, and my msg box appears and when
> I click OK on the MSG BOX, the whole workbook and Excel disappears and my
> user form appears.
>
> I'm relatively new to VBA.
>
> Thanks a lot in advance for any help.
>
> Regards
>
> Stephan
>
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      21st Sep 2008
Close excel
Open excel.
Toggle the security settings to not allow macros to run.
Open your workbook.
Modify your code so that it doesn't do the hiding.
save your workbook.
Close that workbook
change your settings to what you like
reopen your workbook.

=======
You should be able to open your workbook while depressing the shift key and the
auto_open and workbook_open procedures won't run. Macros will still be enabled,
but those two events won't be automatic.

Stephan Leduc wrote:
>
> Hello,
>
> I'm creating a user form and I was trying some code to have the userform
> showed off only, without the workbook and Excel showing off.
>
> It works great , too great since I can't unhide anymore. I tried ALT+F11 or
> F7 and nothing worked.
>
> When I open the Excel file, I see my sheets, and my msg box appears and when
> I click OK on the MSG BOX, the whole workbook and Excel disappears and my
> user form appears.
>
> I'm relatively new to VBA.
>
> Thanks a lot in advance for any help.
>
> Regards
>
> Stephan


--

Dave Peterson
 
Reply With Quote
 
Stephan Leduc
Guest
Posts: n/a
 
      21st Sep 2008
Thanks Dave,

It does work. You are fantastic.

Regards

Stephan

"Dave Peterson" wrote:

> Close excel
> Open excel.
> Toggle the security settings to not allow macros to run.
> Open your workbook.
> Modify your code so that it doesn't do the hiding.
> save your workbook.
> Close that workbook
> change your settings to what you like
> reopen your workbook.
>
> =======
> You should be able to open your workbook while depressing the shift key and the
> auto_open and workbook_open procedures won't run. Macros will still be enabled,
> but those two events won't be automatic.
>
> Stephan Leduc wrote:
> >
> > Hello,
> >
> > I'm creating a user form and I was trying some code to have the userform
> > showed off only, without the workbook and Excel showing off.
> >
> > It works great , too great since I can't unhide anymore. I tried ALT+F11 or
> > F7 and nothing worked.
> >
> > When I open the Excel file, I see my sheets, and my msg box appears and when
> > I click OK on the MSG BOX, the whole workbook and Excel disappears and my
> > user form appears.
> >
> > I'm relatively new to VBA.
> >
> > Thanks a lot in advance for any help.
> >
> > Regards
> >
> > Stephan

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to Hide/Unhide Worksheet Barb Reinhardt Microsoft Excel Programming 7 17th Jun 2009 01:32 AM
RE: code to hide/unhide rows ryguy7272 Microsoft Excel Programming 0 29th May 2009 02:44 AM
VB Code to hide and unhide rows Raj Microsoft Excel Misc 2 27th Feb 2008 05:58 AM
VB Code to hide and unhide rows Raj Microsoft Excel Programming 0 26th Feb 2008 05:34 AM
Re: Need code to hide/unhide 2nd page Sue Mosher [MVP] Microsoft Outlook Form Programming 0 3rd Oct 2003 11:25 PM


Features
 

Advertising
 

Newsgroups
 


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