+ Reply to Thread
Results 1 to 3 of 3

Combobox userform issue with setting WS

  1. #1
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Combobox userform issue with setting WS

    here is my code

    The issue is that I want my combobox6 (which is a list of all my sheets in my workbook) to be set as the "ws" - so as the code below is run on the user selected worksheet. but i get a runtimerror 424 Object required on the Set ws = ComboBox6.Value bit of code.

    Any ideas>?

    Please Login or Register  to view this content.

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

    Re: Combobox userform issue with setting WS

    The values in the combobox are the sheet names, not the sheet's themselves.

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

  3. #3
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Re: Combobox userform issue with setting WS

    legendary that works brilliantly thanks!

    rep added....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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