+ Reply to Thread
Results 1 to 4 of 4

Problems with opening userform with button on worksheet

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    39

    Problems with opening userform with button on worksheet

    HI, I'm having problems opening a userform assigned to a button/rectangle on the worksheet. The error code is 'Run time error 380 - could not set the row source property - invalid property value'. When debugging the script, the yellow marker refers to the macro assigned to open the userform - the section highlighted is 'frmsales.show'. I've checked all the names, properties of the userform etc to see if they match up and they do. Any thoughts?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: Problems with opening userform with button on worksheet

    The issue is actually further past that. Keep pressing F8 and it will tab into and step through the form code and highlight which one is the issue there.

    Not much more I can suggest without seeing the file.

    BSB

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003
    Posts
    39

    Re: Problems with opening userform with button on worksheet

    Hi, thanks for this, I've done this, the part of the code causing the issue is to fill the combo boxes on frmsales with options.
    cbo_customisable.RowSource = "customisable"
    cbo_customisable.ListIndex = 0
    where customisable matches the named range in the excel spreadsheet.
    The spreadsheet is enclosed, open with the password Woofit11 (nothing personal in it ).
    The problem is opening the userform on the sales spreadsheet.
    I hope this helps,
    regards,
    Jonathan
    Attached Files Attached Files

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,911

    Re: Problems with opening userform with button on worksheet

    Press "Ctrl + F3" to bring up the range name manager and look at the one called "customisable".
    The "Scope" of this named range is restricted to one sheet only, rather than Workbook.

    Simple enough to fix:

    1) Unlock the workbook (take the password off)
    2) Press Ctrl + F3
    3) Delete the offending named range
    4) Recreate it, ensuring the "Scope" is set to "Workbook"
    5) Try the userform again and see if it works.

    Please Login or Register  to view this content.
    Happy Friday.

    BSB

    PS. A little research into "Dynamic Named Ranges" might be a good idea. It will be half an hour well spent and you'll not look back.

+ 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. [SOLVED] Error opening userform (clicking button)
    By adamstarr12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2014, 08:10 PM
  2. Opening and closing workbooks using userform button issues!!
    By BuenosDias in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-13-2014, 11:04 AM
  3. 2 problems with creating a print button on a userform
    By manuhuyghe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2014, 02:37 AM
  4. [SOLVED] Userform problems with merged worksheet cells
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-01-2014, 04:39 PM
  5. [SOLVED] Can't get cell value on worksheet after opening userform
    By Dan Vollmer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2014, 09:21 AM
  6. User form RTE 13 when opening with a command button on a worksheet
    By iaingidley in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2011, 11:50 AM
  7. Opening a worksheet with an auto shape button
    By Mooseman60 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2010, 08:21 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