+ Reply to Thread
Results 1 to 7 of 7

Form basics

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Form basics

    Trying to get back to working with forms I can't even get off the ground. I created a simple form, named it MyUserForm (after several more proper names, trying to see if what I named it was causing the error, such as ufFormLetters), then i linked the following code to a command button on a worksheet in that worksheet's code area:

    Please Login or Register  to view this content.
    In case it matters, the form has two controls on it, a listbox and a command button to close it.

    When I click the button on the worksheet to open the form and engage the code above, I get:
    Run-time error '-2147467259 (80004005)':
    Unspecified error.

    How could I have done something to derail the process this early on?

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Form basics

    while in the VBE is the name of the form MyUserForm....should be the 1st line....It still could be named Form1 (1st default naming convention)
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Form basics

    Unfortunately it is... I ran through several hoping I simply stuck the name in wrong or named it something forbidden...

  4. #4
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Form basics

    can you upload a cleaned up version?....

  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: Form basics

    If there is any code that executes when the userform opened, eg Activate, Initialize, have you checked it?
    If posting code please use code tags, see here.

  6. #6
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Form basics

    Makes sense - I made such a mess fumbling around that a lot could have come into play. I will work it again from scratch and advise!

  7. #7
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    583

    Re: Form basics

    Y'all nailed it, it has to do with some other code. Now I will clean it all and work it back. Thank-you.

+ 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. User Form Basics - Populating Text Boxes
    By T.J. Lanza in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-24-2009, 03:48 AM
  2. displaying an Excel Table in a Visual Basics form,
    By soldier_X in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 04:42 AM
  3. [SOLVED] Hi I'm New and need help with Excel Basics
    By abi in forum Excel General
    Replies: 11
    Last Post: 11-23-2005, 03:30 PM
  4. VBA form basics
    By Colin Foster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2005, 01:05 PM
  5. [SOLVED] Excel Basics
    By gallegos1580 in forum Excel General
    Replies: 2
    Last Post: 01-07-2005, 03:06 PM

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