+ Reply to Thread
Results 1 to 14 of 14

Populate Excel Userform with Sheet names with double click to open the sheet ??

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Populate Excel Userform with Sheet names with double click to open the sheet ??

    I found this code here , and its great one

    Please Login or Register  to view this content.
    now how to add double click on the sheet in the list box and open this sheet ???
    any Idea's ??
    or is it possible ?

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    Please Login or Register  to view this content.
    Last edited by AndyLitch; 05-08-2013 at 10:07 AM.
    Elegant Simplicity............. Not Always

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    Norie,
    Thank you so much ..
    I tried your code it gave me Tun Time error '1004': method 'Goto' of object '_Application Failed'

    AndyLitch,
    Thank you too for your reply , but the code didn't do anything ..

    any suggestions ?

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  6. #6
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    this is a demo for the code

    test55.xlsm

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    You've called the userform WorkSheets, why?

    Worksheets is an object in VBA, it represents a collection of the worksheets in the workbook.

    Try changing the form name to something else, eg frmWorksheets.

  8. #8
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    I name it now frmWorksheets
    same error

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    That's really weird because I did exactly that and I don't get any errors.

  10. #10
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    lol, seems something wrong with my excel version

    Strange ...
    I even restart my machine .. still the same error


    thank you for your help and support Norie

  11. #11
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    Can you upload the updated workbook?

  12. #12
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    I know where is the problem !!!
    its coz I am HIDING my sheets ....
    but I need them to be hidden


    test55.xlsm

  13. #13
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    2 options.

    1 Don't add hidden sheets to the listbox.

    2 Don't try and goto hidden sheets.

    First option is probably best.
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    04-23-2013
    Location
    Jordan
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Populate Excel Userform with Sheet names with double click to open the sheet ??

    I solve it by making a login form with all sheets to come Visible when login pass
    and all sheets to be hidden when logout from the workbook


    I guess it will solve this problem

    Thank you for your big SUPPORT Norie

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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