+ Reply to Thread
Results 1 to 6 of 6

Problems with Worksheet_Open

  1. #1
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Problems with Worksheet_Open

    So I have a workbook or two that have code running on opening. Or they should. Sometimes it appears that the code will not run at all, other times no problems. The trust center settings are set to disable with notifications. CAnnot see any reason why it would be so tempermental. ANyone any ideas? TIA

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Problems with Worksheet_Open

    can you upload a sample workbook so that i can look at it?

  3. #3
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Re: Problems with Worksheet_Open

    There's not a lot to see to be honest. Even just putting msgbox "hello" in workbook_open has the same problem.

  4. #4
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Re: Problems with Worksheet_Open

    ACtually this is the code that is getting skipped often. I can't see why.

    Please Login or Register  to view this content.
    Last edited by malcmail; 06-13-2019 at 11:04 AM.

  5. #5
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Problems with Worksheet_Open

    this statement:

    Please Login or Register  to view this content.
    should be

    Please Login or Register  to view this content.
    don't use the = False as this is causing the if statement to be missed

    after rereading your post maybe you want this instead:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    03-11-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2016 (among others!)
    Posts
    331

    Re: Problems with Worksheet_Open

    That makes sense. What I then don't understand is why sometimes it seemed to work. I may never know - and so long as it keeps working I don't much care

    Thanks for the help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with downloaded .csv - matrix sum problems
    By mloiten in forum Excel General
    Replies: 2
    Last Post: 11-02-2018, 12:40 AM
  2. Worksheet_Open event not happening
    By terryvg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2014, 01:35 PM
  3. [SOLVED] Problems with sorting andf Pivot Table problems
    By Saturn in forum Excel General
    Replies: 4
    Last Post: 10-07-2012, 07:47 AM
  4. Replies: 0
    Last Post: 12-25-2011, 04:30 PM
  5. Problems with DD/mm/YY
    By cruiser102 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-10-2009, 04:08 PM
  6. Problems with IRM
    By Aaron West in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-28-2005, 05:05 PM

Tags for this Thread

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