+ Reply to Thread
Results 1 to 8 of 8

Activate sheet

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Activate sheet

    Hi Guys - when i first open the attached workbook - the combo box does not show any values. In order for the values to appear I have to click away from the tab.

    I have two bits of code in the workbook. One to create the unique list in the dropdown which is in a module and the second bit in the actual worksheet where the combobox is...

    any ideas how to avoid having to click away from the sheet?

    Many thanks


    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Blake 7; 11-14-2014 at 06:50 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  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,364

    Re: Activate sheet

    Call the routine from the Workbook Open event as well or instead of the Sheet Activate.

    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 Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Activate sheet

    It's working fine for me.

    This is what I see when I open your workbook
    Attached Images Attached Images


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Activate sheet

    Hi Trevor - many thanks for your suggestion.

    Just to be clear ..! are you saying that I should change

    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    which will then aviod having to click away from the tab? If so I did this but to no avail... sorry if i've missed the point.

    Hello, sixthsense... many thanks for your response but I could not view the image but thanks for taking the time to help out. Appreciated.

  5. #5
    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,364

    Re: Activate sheet

    Put the following code in the ThisWorkbook Class Module. Don't just edit the subroutine header in the Worksheet Class Module.

    Please Login or Register  to view this content.

    Then it will be loaded when the Workbook is opened. If you leave it in the Worksheet_Activate routine, it will be refreshed every time you move away and back. Not sure of the advantage of that if the list is static.


    Regards, TMS

  6. #6
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Activate sheet

    Thanks Trevor - I'll check it out now and see how it goes. Cheers mate

  7. #7
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: Activate sheet

    perfect. thanks trevor - problem solved

  8. #8
    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,364

    Re: Activate sheet

    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. Activate sheet
    By rjayaram.rj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2014, 01:04 AM
  2. Code to Activate a sheet 1 [IF] Userform box is "X" if not Activate Sheet 2
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-07-2014, 08:50 AM
  3. Replies: 1
    Last Post: 05-29-2013, 01:20 PM
  4. [SOLVED] Worksheet Activate when user selects sheet NOT when sheet is created from a template sheet
    By y0rk1e72 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2012, 02:47 PM
  5. [SOLVED] Return to Current Sheet in On (sheet activate) event macro
    By Paul Moles in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2005, 11:06 AM

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