conflict between auto save&close macro and show/hide sheets macro


The Code Cage - Microsoft Office help
      Free Microsoft Office Help for all Applications!

Excel VBA Help

24/7 Tech Support Services
 

To stop seeing these ads and get other benefits check This page!
Automatic Translations (Powered by Powered by Google )
Catalan Chinese Croatian Czech Danish Dutch English Finnish French Galician German Greek Hindi Indonesian Italian Japanese Korean Latvian Lithuanian Norwegian Persian Polish Portuguese Romanian Serbian Slovak Slovenian Spanish Swedish Thai Turkish Ukrainian Vietnamese

Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Page showing the last 10:-
  




Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

New Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 19th October 2009, 15:21
alexandruc's Avatar
Junior Member
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: No VBA Skills
 
Join Date: Oct 2009
Location: Bucharest
Posts: 24
My Top Tip Count: 0
Thanks to others: 2
Thanked 0 Times in 0 Posts
Reputation: 10 (3) alexandruc is on a distinguished road
Romania
Default conflict between auto save&close macro and show/hide sheets macro
     Excel: VBA   


Hello

I am trying to make a save&close workbook macro.

I found several examples on google, but unfortunatly it conflicts with another macro I use for forceing users to enable macros (hide all sheets except one if macros are disabled).

The attached file is an example contaning the save&close code and the show/hide sheets depending on macros enabled.

If the file is opened with macros disabled then only one sheet will be visible.
If the file is opened with macros enabled other sheets are visible.

The problem if that this code uses a custom save, witch makes the save&close not save... (in module1 and in ThisWorkbook)

The pourpose of the save&close is to make sure some users don't forget the excel open and thus block access to it. So if a certain idle time passes excel has to save and close without any confirmation messages.

Can anyone please help me adjust the code in the attached file so that it saves before auto closing?

Thank you

p.s: I raised the same problem with no success so far here:
conflict between auto save&close macro and show/hide sheets macro - Excel Help Forum
here:
conflict between auto save&close macro and show/hide sheets macro - dBforums
and here:
conflict between auto save&close macro and show/hide sheets macro - MrExcel Message Board
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.


Last edited by alexandruc; 19th October 2009 at 17:11.
Reply & Quote Reply


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement
  #2 (permalink)  
Old 19th October 2009, 15:49
RoyUK's Avatar
Administrator
Solution Centre Professional
MS Office Version: MS Office 2003, 2007, 2010
MS Office Skill Level: Proficient with MS Office
 
Join Date: Nov 2008
Location: Derbyshire, UK
Posts: 1,718
My Top Tip Count: 3
Thanks to others: 2
Thanked 103 Times in 101 Posts
Reputation: 1674 (10) RoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant future
3 Top Tips
England
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.





__________________
Hope that helps, RoyUK
For tips & examples visit free excel help

Reply & Quote Reply


Did you find this post helpful? Yes | No
  #3 (permalink)  
Old 19th October 2009, 15:50
alexandruc's Avatar
Junior Member
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: No VBA Skills
 
Join Date: Oct 2009
Location: Bucharest
Posts: 24
My Top Tip Count: 0
Thanks to others: 2
Thanked 0 Times in 0 Posts
Reputation: 10 (3) alexandruc is on a distinguished road
Romania
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






Reply & Quote Reply


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement
  #4 (permalink)  
Old 19th October 2009, 17:13
RoyUK's Avatar
Administrator
Solution Centre Professional
MS Office Version: MS Office 2003, 2007, 2010
MS Office Skill Level: Proficient with MS Office
 
Join Date: Nov 2008
Location: Derbyshire, UK
Posts: 1,718
My Top Tip Count: 3
Thanks to others: 2
Thanked 103 Times in 101 Posts
Reputation: 1674 (10) RoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant future
3 Top Tips
England
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.





__________________
Hope that helps, RoyUK
For tips & examples visit free excel help

Reply & Quote Reply


Did you find this post helpful? Yes | No
  #5 (permalink)  
Old 19th October 2009, 17:16
alexandruc's Avatar
Junior Member
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: No VBA Skills
 
Join Date: Oct 2009
Location: Bucharest
Posts: 24
My Top Tip Count: 0
Thanks to others: 2
Thanked 0 Times in 0 Posts
Reputation: 10 (3) alexandruc is on a distinguished road
Romania
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.







Last edited by alexandruc; 19th October 2009 at 17:21.
Reply & Quote Reply


Did you find this post helpful? Yes | No
  #6 (permalink)  
Old 19th October 2009, 17:53
Simon Lloyd's Avatar
Administrator
MS Office Version: MS Office 97, 2003, 2007, 2010
MS Office Skill Level: Can use most of MS Office
 
Join Date: Aug 2008
Location: Manchester, England
Age: 47
Posts: 9,953
My Top Tip Count: 10
Thanks to others: 27
Thanked 262 Times in 257 Posts
Reputation: 3912 (10) Simon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond repute
10 Top Tips
Wales
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.





__________________
Regards,
Simon Lloyd
Microsoft Office Help

Want to say thanks? then hit this How to say thanks! button in any post you want to thank
If you find one of my posts helpful then hit this one Helpful Answer in the post that helped most!



Reply & Quote Reply


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #7 (permalink)  
Old 19th October 2009, 18:04
alexandruc's Avatar
Junior Member
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: No VBA Skills
 
Join Date: Oct 2009
Location: Bucharest
Posts: 24
My Top Tip Count: 0
Thanks to others: 2
Thanked 0 Times in 0 Posts
Reputation: 10 (3) alexandruc is on a distinguished road
Romania
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






Reply & Quote Reply


Did you find this post helpful? Yes | No
  #8 (permalink)  
Old 19th October 2009, 18:13
RoyUK's Avatar
Administrator
Solution Centre Professional
MS Office Version: MS Office 2003, 2007, 2010
MS Office Skill Level: Proficient with MS Office
 
Join Date: Nov 2008
Location: Derbyshire, UK
Posts: 1,718
My Top Tip Count: 3
Thanks to others: 2
Thanked 103 Times in 101 Posts
Reputation: 1674 (10) RoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant futureRoyUK has a brilliant future
3 Top Tips
England
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.





__________________
Hope that helps, RoyUK
For tips & examples visit free excel help

Reply & Quote Reply


Did you find this post helpful? Yes | No
  #9 (permalink)  
Old 19th October 2009, 18:32
alexandruc's Avatar
Junior Member
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: No VBA Skills
 
Join Date: Oct 2009
Location: Bucharest
Posts: 24
My Top Tip Count: 0
Thanks to others: 2
Thanked 0 Times in 0 Posts
Reputation: 10 (3) alexandruc is on a distinguished road
Romania
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.






Reply & Quote Reply


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

  #10 (permalink)  
Old 19th October 2009, 19:24
Simon Lloyd's Avatar
Administrator
MS Office Version: MS Office 97, 2003, 2007, 2010
MS Office Skill Level: Can use most of MS Office
 
Join Date: Aug 2008
Location: Manchester, England
Age: 47
Posts: 9,953
My Top Tip Count: 10
Thanks to others: 27
Thanked 262 Times in 257 Posts
Reputation: 3912 (10) Simon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond reputeSimon Lloyd has a reputation beyond repute
10 Top Tips
Wales
Default Re: conflict between auto save&close macro and show/hide sheets macro

------ Register to get rid of these "In Post" ads! ------


Warning

Warning



Sorry but you need to register for FREE to see the rest of these posts. Please click HERE to register.

We only allow guests to see the first post of every thread to keep valuable resources for our members.





__________________
Regards,
Simon Lloyd
Microsoft Office Help

Want to say thanks? then hit this How to say thanks! button in any post you want to thank
If you find one of my posts helpful then hit this one Helpful Answer in the post that helped most!



Reply & Quote Reply


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!

New Reply
The Code Cage at Facebookhe Code Cage at Twitter


Tags
auto, conflict, macro, saveandclose, sheets, show or hide

Thread Tools
Display Modes 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 On


The Code Cage Affilliates


To stop seeing these ads and get other benefits check This page!



All times are GMT +1. The time now is 05:09.


Languages translations made by vBET Translator 3.5.4
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0
Template-Modifications by TMS
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright © 2008 - 2012
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1