+ Reply to Thread
Results 1 to 5 of 5

UserForm.Show erroring out, requires object

  1. #1
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    UserForm.Show erroring out, requires object

    My code launches a userform (userform1) when a user opens a particular worksheet in the workbook. Uses the 'UserForm1.Show' command.

    On my machine this works fine (on excel 2003,2007 and 2010), but on another user's machine it errors out and states that an object is required. On debugging, the 'Show' line is that causing it. I've double checked it on my machine and it still runs fine for me.

    As far as I was aware there is nothing on this line referring to (or that could refer to) an object. Any ideas as to the cause?

    Code below

    Thanks,

    Tom

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: UserForm.Show erroring out, requires object

    well, strictly speaking, the UserForm is an object, but I assume it's in the workbook
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: UserForm.Show erroring out, requires object

    Yep, it's in its usual place under Forms.

    All other answers I've found seem to have been solved based on a mis-spelling. No such luck here, especially as it run's on my machine but not others'.

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: UserForm.Show erroring out, requires object

    Hi TK,

    On my computer (Excel 2003), whenever there is an error in 'UserForm_Initialize(), the error appears on the 'UserForm.Show' line. You may want to take a look at the code in the UserForm module.

    Lewis

  5. #5
    Forum Contributor
    Join Date
    02-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    187

    Re: UserForm.Show erroring out, requires object

    LJMetzger, I just realised the same thing and that's the answer.

    Many Thanks!

+ 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. UserForm to search sheet, show results on separate userform?
    By egemenkepekci in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2010, 01:06 PM
  2. userform is large.....how to use scrollbar of userform to show all of the userform
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2010, 04:11 PM
  3. add something to m code to keep from erroring
    By daniels012 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2009, 09:55 AM
  4. VBA code erroring in XL97...
    By sharpie23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2006, 03:30 PM
  5. Excel Erroring on Close
    By Denny Behnfeldt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2005, 11: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