+ Reply to Thread
Results 1 to 7 of 7

force enable macros lag

  1. #1
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    force enable macros lag

    Hey
    I have a book SIMILAR to this 1
    and when you open it it kinda lags
    and you get a flash of the welcome screen
    any ideas how to stop this?
    I know its not a major thing but its more aesthetic than functional.
    and i want this to look GOOD :D
    Attached Files Attached Files
    I dont like to use code i dont understand
    it makes it hard to use in other situations
    so please try to be as clear and patent as possible with me

    Criticism is welcomed

  2. #2
    Registered User
    Join Date
    03-24-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: force enable macros lag

    There are two macros running in this workbook. The first (Workbook_Open) runs first thing after the workbook opens. The second (Workbook_BeforeClose) runs just before you exit. The flash screen is just another worksheet which is hidden using the xlveryhidden property. To correct this, you need to

    Alt+F11 to open the VBE
    Cntl+G to view and set focus on the Immediate Window
    Type This
    worksheets("Enable Macros!").visible = true and press Enter.
    worksheets("Data").visible = true and press Enter.


    You also need to remove the code from Thisworkbook or else it will rehide everything before it closes.


    Hope this helps
    Last edited by bitterenemy; 04-07-2009 at 07:12 AM. Reason: corrections - not done
    Oh you wanted the elegant solution? Sorry, that's extra!

  3. #3
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: force enable macros lag

    oh no i dont want to know how to show/hid the sheet
    i just want the LITTLE flash of the enable macros! sheet to stop
    i dont know if this is possible

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: force enable macros lag

    You can only alter this by altering your own security settings - this is specific to each client and can't be controlled using VBA (given that would defeat the purpose of security settings in the first instance)

  5. #5
    Forum Contributor FRIEL's Avatar
    Join Date
    03-07-2008
    Location
    Coventry
    MS-Off Ver
    2003 and 2007
    Posts
    266

    Re: force enable macros lag

    oh ok
    thanks anyway guys

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: force enable macros lag

    I don't get the flash using this code, and it's more flexible than the existing code.
    Attached Files Attached Files
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: force enable macros lag

    Apologies all - notably Friel - I interpreted "Enable Macros" in your narrative as being the default Security Dialog - my bad.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1