Excel 2007 VBA, problem setting Sheet Visibility in BeforeSave event after Office updates during mid Dec 2014

After update of Office 2007 during mid December 2014, I have a Macro that does not work properly - which it did before the update.
The Macro is used to make sure that users have Macros enabled when working on the file. The logic basically does the following:
=> In the "OnOpen" event, set all "work sheets" as Visible, and set the "Macro Warning sheet" to non-visible.
=> In the "BeforeSave" event, set the "Macro Warning sheet" as Visible and set all "work sheets" as non-visible.
After the mid December update of Office 2007, the "OnOpen" part still works fine. The "BeforeSave" part does NOT work properly if the save action is triggered by using the shortcut key "CTRS+s". However, if saving the file
using the "Save" option in the menues, the "BeforeSave" action works fine.
Does Microsoft have a fix for this problem? I am not entierly sure exactly which update/KB that caused this.
To recreate the problem, put the following code into the "thisWorkbook" module, and make sure that one sheet has the codeName "wshForceMacros". Open the file, enable Macros, then save the file using the keys "CTRL+s". The macro
now hangs on the row "wshForceMacros.Cells(2, 1).Select" since the wshForceMacros sheet has not become properly visible...
Option Explicit
'ON OPEN
Sub Workbook_Open()
Call ShowSheetsAfterOpen
End Sub
'ON SAVE
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Call HideSheetsBeforeSave
End Sub
'ON SAVE
Sub HideSheetsBeforeSave()
Dim oSheet As Worksheet
'Show Macro Lock sheet
wshForceMacros.Visible = xlSheetVisible
wshForceMacros.Activate
wshForceMacros.Cells(2, 1).Select
'Hide all work sheets
For Each oSheet In ThisWorkbook.Worksheets
If oSheet.CodeName <> "wshForceMacros" Then
If oSheet.Visible = xlSheetVisible Then
oSheet.Visible = xlSheetVeryHidden
End If
End If
Next oSheet
End Sub
Sub ShowSheetsAfterOpen()
Dim oSheet As Worksheet
Dim bSaved As Boolean
'Show all work sheets
For Each oSheet In ThisWorkbook.Worksheets
If oSheet.Visible = xlSheetVeryHidden Then
oSheet.Visible = xlSheetVisible
End If
Next oSheet
'Hide Macro Warning Sheet
wshForceMacros.Visible = xlSheetHidden
End Sub

Hi,
This is the forum to discuss questions and feedback for Microsoft Excel, I'll move your question to the MSDN forum for Excel
http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.

Similar Messages

  • Excel 2007 query problems

    Has anyone else noticed problems with Excel 2007 when doing webqueries? We have someone who wrote a bunch of VBA in an excel document (excel 2003) that does 7 web queries, and then creates pivot tables on the results.
    Because of the row limitations in older excel version (1million+ rows in Excel 2007), we upgraded. However, now the Excel queries take forever. In TOAD, the queries run in 5 seconds, but take hours upon hours in Excel 2007. The PC where Excel runs is adequately powered (CPU, RAM, etc) to handle the load.
    I'm assuming some type of ODBC problem? Maybe an incompatibility with Oracle 9iR1 drivers?
    We're running 9.2.0.1 here for now.
    Any help would be appreciated!
    Thanks!
    -Mike

    turns out the Excel 2007 VBA engine is extremely slow. THe query returns very quickly, but Excel 2007 is taking much much longer to use the result set.

  • My friend have problem in his system in macbook pro. after he update it. the macbook get restart every 10min. he so upset. please could you help him? thanks

    hello best stor in the world
    my friend have problem in his system in macbook pro. after he update it. the macbook get restart every 10min. he so upset. please could you help him?
    thanks

    thanks, but he wants this updeta.
    because has many specile features not found in the old update

  • OLAP 10g with Excel 2007 crashing problems

    We currently have a 10g database and 10g OLAP toolset. We have a user population split between Windows XP on Excel 2003 and Windows 7 on Excel 2007. We are distributing the Excel Add-In 10.1.2.3.0.2 version, but the Windows 7/Excel 2007 users are having a lot of problems with Excel crashing unless it is the only application that is open (which is understanably frustrating to that user base). They have to go into task manager and kill the excel process (not just the application) or face doing a full reboot. Are there any settings we can change to improve performance on Excel 2007? We hope to do an 11g upgrade later this year, but it won't happen until 2nd half at the earliest due to other contstraints.

    First verify if the patch was successfully installed by checking the Xcelsius application version from the Help Menu.  It should be 4.2.5.5 or higher. 
    In addition, that might be behavior due to an Excel add-in affecting the automation between Xcelsius and Excel. You may need to remove any Excel add-ins that you have installed.

  • Excel 2007 Multithreaded Calculations - Set Remotely (GPO, Registry, etc.)

     Could someone please tell me where the value is stored that tells Excel 2007 how many calculation threads to use.  Is there a way to set it to only use half of the number of CPU's in the computer everytime you open a session?  We would like to do this remotely through group policy or by a script.  By default it sets the number equal to the number of logical processors in the machine.

    I would like to know where is is for Office 2010 too.  Spreadsheets with a lot of calculations are killing the XenApp servers.
    I have been unable to find a GPO setting or a registry setting where this is stored.
    Michael Pekarik Syntax, Inc.

  • Acrobat Pro 8.2.5 + Excel 2007 Intermittent Problem

    Acrobat Pro 8.2.5 (fully updated) + MS Excel 2007 (fully updated) + WinXP Pro (fully updated)
    Excel document has several worksheets, one of which I convert to PDF weekly to put on an internal web link
    I use the Excel toolbar icon Acrobat added to Excel, clicking Acrobat-Create PDF, to start the process
    I always accept the default location, since I delete the local file after uploading to the server... therefore I never have to tell Acrobat it is OK to replace the file
    About 1/2 the time, when I select the individual worksheet and tell Acrobat to convert to  PDF, it asks me for a file name and then actually creates that file
    The rest of the time, it asks me for the file name and goes through the process, but does NOT create the file... so I have to start over and let Acrobat do the work again... I have never had the process fail twice in a row
    This is a company computer so I may not replace Acrobat Pro 8x
    Is there anything else I may do?

    A week or so after Microsoft's latest "Patch Tuesday" I went to create my usual PDF 
    Clicked on the toolbar option and got to the point of entering the file name, when Excel locked 
    Nothing I did could get Excel to work, so had to close it with Task Manager 
    When I went back to Excel to create the PDF, the option was gone from the toolbar 
    I was tired of messing around with this, so now I just use the File--Print--Adobe PDF process 
    This works every time, and is actually faster than before with the toolbar option 
    As long as I can create my weekly PDF I don't really care HOW it's done, just that it works

  • Excel 2007 formatting problems with new Adobe Reader 9.1

    I am using Excel 2007 and have always been able to seamlessly save as PDFs until I updated to Adobe Reader 9.1.  Now the formatting is completely messed up.  I've tried several "fixes" listed on forums, including checking the printer parameters and nothing has worked.  Please help!

    I posted the link to the Microsoft software that works with Office 2007 to save as a PDF
    If you need other Microsoft help, search at http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US
    If you have a Reader question, go to http://forums.adobe.com/community/adobe_reader_forums

  • Setting the visibility of a button after a click on a TabbedPane

    I have a page with a Tabbed Pane.
    I would like to set the visibility of a command button when I click on a Tab.
    To do that I put a disclosureListener like this:
    <af:panelTabbed position="above" testId="Tab1" >
    <af:showDetailItem id="Tab1" text="Tab1" disclosureListener="#{prova.apri}">
    <af:outputText value="Table1"/>
    </af:showDetailItem>
    <af:showDetailItem id="Tab2" text="Tab2">
    <af:outputText value="Table2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    In the backing bean I have the attribute bound to the commandButton and the listener method like this:
    public void apri(DisclosureEvent disclosureEvent)
    // Add event code here...
    RichShowDetailItem o =
    (RichShowDetailItem) disclosureEvent.getSource();
    this.commandButton1.setVisible(true);
    this.commandButton1.setRendered(true);
    It doesn't work !! I guess I'm missing something....
    Could someone help me??
    Thanks a lot.
    Alfredo

    Based on the code you provided it does not look like you are using a partialPageTrigger, which would be required in this case.
    --Ric                                                                                                                                                                                                                                                                               

  • Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. after Office Updates.

    I cant cant use mail merge feature in Winword in conjunction with Abobe Acrobat 10 (pdfmaker add-in) after the recent Office April Windows and Office Updates.
    Here is a quick note from the event viewer:
    The program WINWORD.EXE version 14.0.7134.5000 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel. 
     Process ID: 1138 
     Start Time: 01d07dcede19c458 
     Termination Time: 15 
     Application Path: C:\Program (file:///C:/Program) Files (x86)\Microsoft Office\Office14\WINWORD.EXE 
     Report Id: 
    Microsoft Word: Accepted Safe Mode action : Word experienced a serious problem with the 'acrobat pdfmaker office com addin' add-in. If you have seen this message multiple times, you should disable
    this add-in and check to see if an update is available. Do you want to disable this add-in?.
    I do not wish to disable the pdfmaker add-in as I use it to run mail merge on WORD and send 10s and 1000s of pdfs via email to external users. I am not sure what are my options here and I wish
    someone could help me get to the root cause of the matter.
    My environment is as follows:
    Windows 7 x64 SP1
    Office 2010 v 14.0.7128.5000
    Adobe Reader MUI X and Adobe Acrobat X
    Feroze

    Hi,
    As the event log indicated, this is due to acrobat pdfmaker office com addin doesn't work well with Microsoft Word.
    I would suggest you go ahead and try to upgrade your Adobe product to the latest version and see if issue persists.
    Or contact the support of Adobe and see if there is a known compatibility issue or not.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I am having problems pairing a wireless keyboard to iPad2 after ios6 update.

    I am having problems pairing our wireless keyboard to our iPad2 after ios6 update.  I enter in the code and press enter on the keyboard and I get a unsuccessful pairing message. Please help!

    Well if you said what your issues were then it might be easier to say if we're experiencing similar problems

  • Acrobat 9.1.1 pro, Excel 2007, pagination problems

    I have just upgraded from CS3 to CS4 Design Standard. I have been accustomed to producing PDFs from Excel 07 with Acrobat 8 pro, normally selecting a number of sheets from the same Excel workbook to creat a single PDF. I normally use the "page # of  ##" option in Excel for my footer, which would come through just fine in Acrobat 8. In Acrobat 9, each page is instead reflected as "Page 1 of 1" in the PDF file, and I cannot get Acrobat to properly reflect the true number of pages.
    As a late upgrader, I know there are likely others who have run into this problem, and I would greatly appreciate learning what the solution might be. Thanks for your assistance.
    Hat

    The toolbar item (PDF Maker) is often used by folks due to convenience or simply not trying the other option. You might want to try both and note the size difference. There are a lot of features that can be turned off in PDF Maker that will reduce the size. The major reason to use the PDF Maker is typically for the bookmarks and links that it will retain for the PDF (these are lost with the printer by itself).
    I have found some differences between PDF Maker and the Adobe PDF printer results for OFFICE 2007. That may be the issue you are running into. If found it was a result of OFFICE 2007 and not Acrobat, at least that was the conclusion I reached. I was looking at some graphics issues in PPT files.
    Since the printer worked for you, you might want to check the preferences in PDF Maker to see if one of them is causing your problem. That is about all I can suggest.

  • Have problem setting Email alerts for Calendar events. Warning message says I need to set up a card in Contacts with my email. I do but it doesn't recognize it. How do I indicate the email I want alerts sent to?

    The system of setting up email alerts for Calendar events worked fine in Snow Leopard but since I upgraded to Mt. Lion Calendar won't let me set email alerts. When I try, I get an error message saying I need to set up a card in Contacts for my email. I have a card set up in Contacts for both of my email addresses but it doesn't recognize them. Perhaps the name I have on the card doesn't match a name that Calendar is looking for. Calendar doesn't seem to have a way in Preferences or elsewhere to indicate the email I want alerts sent to. Any ideas how I can get this system working again? Thanks for your help.

    You might want to consider starting a new discussion. Since this one is marked solved, less people are likely to look at it. You can link to this one.
    See if another contact is marked as this is my card.

  • Problem: setting DESTINATION to RESTORE Source-Backup after ERASING Harddri

    Hi Gang,
    I partitioned my harddrive when installing BootCamp. It was a pain to log on every day so I backed up my harddrive on a different enternal harddrive. I then erased my MacBook Pro harddrive and I went to restore using Disc Utility 10.5. Everything seemed fine until I tried to drag my original harddrive file from the left column into the destination box. Whenever I try to do so, all the drives in the column light up as I bring my pointer down and the drive I pointed to will not go into the destination box. What did I do wrong ??? Anyone who can help, I would be forever grateful. Many thankyou's in advance. Peace, Joe Ray

    Hi,
    Seems your SAP system is unicode.
    Use T Code SM59, expand the ABAP connections node, select PRDCLNT010 by double clicking on it.
    Navigate to the MDMP & Unicode tab.
    Check that the Unicode radio button is selected.  Save the connection and click on the Unicode test button.  You should get a message that the target system is unicode.
    Go back and try and activate your system.
    Cheers..

  • Why does my preferred search engine gets hide set to True in search.json after every update to Firefox?

    I use DuckDuckGo as my preferred search engine. Everytime Firefox gets updated it dissappears from the drop down menu of search engines. I found in search.json that the Hide value would be set to True. By changing it to False and restarting Firefox DuckDuckGo would be back, until the next update. Why is this happening? It is an extension available from the Mozilla/Firefox extension/addons site.

    First of all, thank you for providing troubleshooting info (Troubleshooter addon), have you tried the searchreset tool.
    * https://addons.mozilla.org/en-US/firefox/addon/searchreset/

  • Sets of unknown string is displayed after flash update program

    We have HP laserjet 1213nf MFP printer installed in network. But for some reason after updating HP flash update program related to the printer and after restarting the printer. We have came accross different error displayed on screen.Hence we are unable to reconffigure the printer as per our network settings.
    below is the set of strings displayed in two line
    1 set
    IZMAT.IZEJMAT
    TIEK IZMANTOTS
    2nd set
    PABEIGTS AUTOMAT.
    09/05/12 03:23
    Pls. help us resolve this issue.

    What is the process name you see hanging?
    Anyway, to avoid that use the offline installers
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)

Maybe you are looking for

  • Need some help in writing a function

    Hi all, I need to write a function.... the data in a table is of varchar2 type and its a ,separated values. its in many forms sample ex:1,2,3,4,,,,,76, 12,32,,,,,,,, 12,32 12,,,,,23,,,, the total numbers in that field must be 10. So i need to write s

  • HOW I GOT MY IPOD TO WITH WITH ITUNES 7 (3RD GEN)

    I had pretty much the exact same problems as alot of people on here. Let me recap: 1. Installed iTunes7 2. 3G 15Gig iPod is no longer recognized. So this is what I did to solve this. I have a mac laptop and a PC desktop. My iPod syncs with the PC. Th

  • Box wise packing slip

    hi, the packing scenario is a under: 1. finished items packed in a small box. One item in one samll box. 2. the small boxes are then packed into corrugated box. suppose 10 small boxes are packed in one corrugated box. 3. then corrugated boxes are pac

  • Cannot save "Untitled-4" under a new name.

    I'm getting this error trying to run the HelloWorld.jsx Script on a Windows Server 2003 VM machine inside OSX. I've been working with the server with no problems, having been able to test scripts to import XML, and export in various formats.. I had j

  • MapViewer 12 draw tile layer error with the South hole one polygon

    I use Oracle MapViewer 12. When draw the South hole land with one polygon, the map error. I use Oracle SQL Developer to view the good polygon. I give the image here: bad one (text draw in polygon area) good one with Oracle SQL Developer (text draw in