+ Reply to Thread
Results 1 to 6 of 6

Workbook_Open() Not Working automatically

  1. #1
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Workbook_Open() Not Working automatically

    HI,
    I have this code in my workbook and it works fine but maybe I am putting it in the wrong location as it doesn't work when I open it. I have to hit "run" to get it to work. I am under the assumption that this should auto run as is? Its located in Modules? What am I doing wrong????

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Workbook_Open() Not Working automatically

    In needs to be in the ThisWorkbook Class Module, not a standard/normal module.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Re: Workbook_Open() Not Working automatically

    Hi and thanks but that still does not work? I must be doing something wrong. I attached a screen shot of the Class Module.
    Thanks
    Dave

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Workbook_Open() Not Working automatically

    No. The ThisWorkbook (Class) Module ... above Modules and after Sheet3

  5. #5
    Forum Contributor
    Join Date
    04-09-2015
    Location
    Jamestown, TN
    MS-Off Ver
    2010
    Posts
    111

    Re: Workbook_Open() Not Working automatically

    Thank you!
    Solved
    Dave

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Workbook_Open() Not Working automatically

    You're welcome. Thanks for the rep.

+ 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. Workbook_Open event do not working?
    By Dumy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-11-2013, 04:09 AM
  2. Workbook_Open() not working
    By stuartglass in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-03-2011, 12:59 PM
  3. Workbook_open Event Not Working
    By mllm in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-14-2008, 03:19 PM
  4. [SOLVED] Workbook_Open - Multiple Events not all working
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2005, 03:05 AM
  5. [SOLVED] Workbook_Open not working
    By Sheena N via OfficeKB.com in forum Excel General
    Replies: 4
    Last Post: 05-05-2005, 09:06 PM

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