+ Reply to Thread
Results 1 to 3 of 3

Using a Userform ComboBox to activate specific worksheet

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Question Using a Userform ComboBox to activate specific worksheet

    Good evening all,

    I realize this is probably a bit silly, so please keep in mind I am still an amateur at best when it comes to VBA. I am trying to have a ComboBox activate a specific sheet based on the value of "ComboBox1.Column(1)". I have many sheets to select from so i want to avoid using the Case method, is this possible? Here is a small sample of my code that isn't working:

    Please Login or Register  to view this content.
    Any help would be greatly appreciated

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Using a Userform ComboBox to activate specific worksheet

    hi,
    as an option you can use a UserForm having a ComboBox1, and use the first piece of code for ComboBox1 itself
    Please Login or Register  to view this content.
    and for UserForm
    Please Login or Register  to view this content.
    and this one for yr button
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    01-12-2014
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Using a Userform ComboBox to activate specific worksheet

    Thank's for the response, I tried what you suggested and could not get it to work with my existing code. I have just reverted back to using the case method for now, it does the trick. I just thought there was a simpler way to write it. I will post my code and maybe someone knows a cleaner way to write it

    Please Login or Register  to view this content.

+ 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. Enter data under specific Range (columns) via userform and combobox
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 12:01 PM
  2. Replies: 4
    Last Post: 09-10-2013, 02:11 PM
  3. [SOLVED] Check for specific text in ComboBox value on userform
    By lday75 in forum Excel General
    Replies: 2
    Last Post: 08-24-2012, 08:00 AM
  4. Activate worksheet with UserForm CommandButton
    By Sal1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2012, 06:55 PM
  5. Activate Worksheet from a specific Cell
    By jbear01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2010, 04:15 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